In this article you will learn about scope and expression in AngularJS.
Before reading this article, I highly recommend reading the previous part of the series:
Here we are reading scope & expression. $Scope Inheritance If you define nested controllers then child controller will inherit the $scope of its parent controller. It has two types: $root Scope: An app can have only one $root scope which will be shared among all the components of an app. It is available in the entire application. It acts like a global variable. Now you create your project.
$Scope: $Scope is a JavaScript object that refers to the application model. It acts as glue between controller and view. $scope is passed as first argument to controller during its constructor definition. Complete code
Hands-On With AngularJS Using ASP.NET