your “hello world” application Adding a little design with bootstrap Using the common directives Creating the list application Looking at the Bigger picture
to keep refreshing Rich in creating dynamic and interactive web pages http://www.9lessons.info/2011/09/submit-‐form-‐without-‐refreshing-‐page.html
telling your running angular on the page $scope – serves as the bridge between the view and the controller; Also used to declare variables/functions. {{}} or double curly braces serves as displaying values to the view
Created the app and controller directives in the HTML Created the module and controller in a single JavaScript file $scope – acts as the object between the view and controller. Also used to create variables.
navbar-‐inverse navbar-‐fixed-‐ top"> -‐ Creates the fixed navbar on top <div class="container"> -‐ defines a container based on the width <div class="navbar-‐header”> <a href="#" class="navbar-‐ brand"> -‐ sets the header on the top-‐left of the nav <ul class="nav navbar-‐nav"> -‐ Creates the list of menus by using list items <li> Note: add 50 pixels to the top padding to adjust the content.
bootstrap <table class=“table table-‐stripped”> For now let’s add hard-‐coded data from the JavaScript to see the layout After, use ng-‐repeat to display data
new button wherein it displays a new form for input Copy and paste the <thead> portion and replace the words into textbox with models corresponding to its column with an a prefix called “add”. Add also the checkbbox option default to false. Write the push function in the controller to add the data
for the checkbox and makesure it has the model of checked from the JSON Add another button in which deletes all data the’s checked from the checkbox Load underscorejs for filter. This will be used to filter data easier.
single page apps and it’s to use Angular Routing (Rather than using tab values). The reason we didn’t do it is it NEEDS to be run on a server (A.K.A localhost) for routings to work What we did are just the basics and the things you will be needing to get started. Going further to routes will make you crazy.