Showing posts from December, 2016

simple angularjs 1.x webapp

Here's a very simple app using AngularJS 1.x.


Ignore how the first couple of lines in app.js work, and just use as is.Anything in index.html that starts with "ng-" is a "angular directive", fancy term for a placeholder. Angular repeatly scans the DOM for these, gulps them up and runs them. Sometimes it is just a div, sometimes the whole body. You decide how much of the DOM a directive needs to control. Try to keep it as small as possible.
Live app: (I hope)

Maybe try to play with app.js to see if you can add some functionality using m_words.