Pages

Monday, November 16, 2015

angularJS

angularJS is one of framework that can be used to build a web application.

framework consist of model - view - controller. And angularJS is one of javascript framework that focused on front end development. It mostly resides on view (MVC).

It means that we can make an amazing beautifully, and interactive apperance to our site.

Angular also suited to make a one page application as with new request ( probably on click ), angular doesn't need to refresh entire page ( only request the information that needed to update the page). So the web can be more faster, efficient and responsive.


unlike php/rails/asp,  angular works on client side  ( client's pc ). It receives data as json and do something with that data and interactively bind that data to html pages.









for installing angular we can go to  angular site.  and press the download button. But i prefer using npm because i already installing nodejs in my local computer.On windows we can go to command prompt and type

> npm install angular@1.4.7.

and it will created folder called node_modules/angular/

and automatically download angular javascript to that folder.


install angular javascript framework


now we can experiment with this. Starting with modules and directives.