|
AngularJSHere is an angular hello-world program consisting of two files: 1 html and 1 javascript
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. |
Got a thought to share or found a
bug in the code?
We'd love to hear from you:
Name: | |
Email: | (Your email is not shared with anybody) |
Comment: |
Facebook comments: