Just messing around with angular 1.x
- Install Python
- Go to directory of the project you wish to serve
- Excute
python -m http.server [<portNo>]
for python 3.x orpython -m SimpleHTTPServer [<portNo>]
for python 2.x
- The default port number is
8000
Testing data binding with a
$scope
object in the html
<pre>{{ scopeObjectName | json }} </pre>
This prints out the data but passes is through a "pipe" function
|
.. In this case the json function, formatting the data in json format.
ng-app
defines the app scope, and grabs the DOM objects within this scope
ng-controller
handles the business logic