What happened here?
In the JavaScript file, we created an angular module with the name 'store' (Don't worry about what a module is, for now)
Then the same name 'store' was used later in the html file as <div ng-app="store">
This binding tells AngularJS to pre-process the given html element before loading.
And due to this pre-processing, it was able to evaluate the AngularJS expression {{4+6}}
(Expressions in Angular are written under double curly braces, but more on that later.)

So the take away from the above code is to see how Angular can be bound to an html element.

Like us on Facebook to remain in touch
with the latest in technology and tutorials!

Got a thought to share or found abug in the code? We'd love to hear from you: