Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between $scope and scope?

Answer Posted / ankush

- The $ in "$scope" indicates that the scope value is being injected into the current context. $scope is a service provided by $scopeProvider. You can inject it into controllers, directives or other services using Angular's built-in dependency injector:

- scope could be anything, it's a function parameter name
function link( scope, element, attributes ) {
// Only scope
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain ddo in angularjs?

839


Why do we need provider aliases?

818


What are templates in angular?

780


How will you show/hide buttons and enable/disable buttons conditionally?

919


What is the scope of a $scope?

926


What is the purpose of exports in a ngmodule?

777


How to initiate variable in angularjs?

797


Can I use two ng class?

756


What are components in angular7?

770


What is the difference between structural and attribute directives in angular?

899


Write all the steps to configure an angular app(ng-app).

817


What is dependency injection in angular 2?

827


What is a controller javascript?

829


Is it possible to have a multiple router-outlet in the same template?

801


What’s the difference between http and httpclient?

889