Hi Guest 1 HomePage 1 Jobs 1 WalkIn 1Articles  

 :) Latest Topic
Numbers And Strings
Objects And Array
AngularJS VS JavaScript
Controllers in Files
Load the Library
AngularJS Directives
Repeating Directive
AngularJS Facts
Create Directives
Restrict Directive
Custom Filter
AngularJS Services
AngularJS Service 2
AngularJS Tables
Select Option
Select Option 2
AngularJS Forms
Form Validation
Validation CSS
Validation Example
AngularJS API
AngularJS $http
AngularJS Database
AngularJS HTML DOM
AngularJS Events
Custom Validation
AngularJS Tutorial
AngularJS Introduction
Angular init Directive
AngularJS Expressions 1
AngularJS Applications
AngularJS Expressions 2
Angular CSS Properties
AngularJS JSON
AngularJS Modules
Controller Basic
Add a Directive
Model Directive
Validate Inputs
CSS Classes
Data Binding
AngularJS Controller
AngularJS Scope
Root of Scope
AngularJS Filters
 


  

 
AngularJS Scope
Question Posted on 16 Apr 2020

Home >> Tutorial >> AngularJS >> AngularJS Scope


AngularJS Scope
Scope is binding part between the View(HTML) and the Controller (JavaScript).
Scope is object with the available properties and methods.
Scope is always available for both the view and controller.

Use of Scope?
When we make controller in ANgularJS we will pass the $scope object as an argument. Below example will helps you to undersatnd the properties made in controller and can be referred in the view:-

AngularJS Scope
In above screen we add properties to the $scope object in the controller, and the view gets access to these properties. In the view we cannot use the prefix $scope.

Uses Of Scope?
IF below 3 points comes in AngularJS application then scope comes into picture:-
(1)View which is the HTML
(2)Model which is the data available for the current view
(3)Controller which is the JavaScript function that changes, makes removes and controls the data
If above 3 points comes into picture then scope is the model.
Here scope is a JavaScript object with properties and methods which is available for both the view and the controller.


AngularJS Scope Uses





Other Important Questions
Numbers And Strings
Objects And Array
AngularJS VS JavaScript
Controllers in Files
Load the Library







 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |