In this video Iftach Bar talks about different built-in variables and methods on $scope and the difference between public and internal variables.
- [Narrator] Before we dive…into how exactly $scope Inheritance work,…it's important to understand…what we can and can't do with AuralScope.…Generally, $scope is an object that we can extend…and add attributes to,…like we added the variables force or secret.…There are also some built-in methods and variables…on $scope that Angular provides.…Some variables start with one dollar sign like dollar parent…and some start with two dollar signs,…like $$watchers.…
The difference between the two…is that the one dollar sign variables are public…and can be used and relied on in your Angular app.…They are part of the API that $scope provides,…and you should get to know them…and may use them in your production code.…The two dollar sign variables are private,…this mean that they are not part of the API,…but part of the internal implementation of Angular,…and you should not use them in your production code…since they might change in newer versions of Angular.…
However, it is okay to learn and understand what they mean,…to use them for debugging purposes,…
This advanced AngularJS course helps you explore the connected worlds of $scope and the digest cycle. Instructor Iftach Bar explains scope and inheritance, goes behind the scenes of the digest loop, and teaches both manual and automatic data binding approaches. Plus, learn how to integrate external libraries, diagnose performance issues, and debug your applications.
- $scope and controllers
- $scope built-in variables and methods
- $scope prototype inheritance
- Manual data binding with $scope.$watch
- The digest loop
- Get the $scope in the console
- Forcing $digest
Skill Level Advanced
AngularJS 1: Building a Data-Driven Appwith Ray Villalobos2h 15m Intermediate
1. Scope Basics
2. Manual Data Bindings
3. The Digest Loop
4. Tips for Debugging Angular in the Console
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.