Tag Archives: $scope

JavaScript Scope Chaining


Let’s start with a simple, yet confusing, example: You can try the live code here: JSBIN Note that the name var is not defined in the second and third functions. What do you expect the output to be? undefined undefined? or maybe sleepy sleepy? Scope chaining Surprisingly enough, the output will be kitty sleepy (on separate lines of course). Why? It’s […]

https://lilotop.wordpress.com/2015/08/15/javascript-scope-chaining/

21 points cheat sheet on AngularJS controller and the $scope object


This blog post is a 21 points cheat sheet on the AngularJS controller and the $scope object. These points can be used a quick notes while working with two important components of Angular app controller and the $scope object Notes on $scope object $scope is a glue between the view and the controller. It connects […]