Angular.js tutorial: initial commit

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
Add twitter bootstrap

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
Complete basic Todo List application

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
TodoController: remove $http get request in initialization

This is to simplify the testing of the controller.

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
TodoController: Test initialization

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
TodoController: Add unit tests for $scope.addItem

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
TodoController: Add unit tests for $scope.retrieveLastNItems

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
Update README.md

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
TodoList: add buttons to allow retrieving last 10 and 15 inserted items

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
Add navbar and test the navtabs directive

Adding the navbar will show the usage of the $routeProvider in a clearer way.
It also allows us to possibly cover the testing of an angular.js directive.

Because we require some jQuery functions in the test case for the navtabs
directive, we track the jQuery library starting from this patch.

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
README.md: include instructions on how to run the application

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
README.md: Indicate that the backend is written in Flask

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
README.md: restrict columns to 80

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
README.md: Shift setting up for tests instructions to Running Tests section

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
TodoList page: Add padding of 10px to div

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
Update second page to show basic application of angularjs

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
Rewrite the navtabs directive

This is inspired by the 'Create Components' example seen on the AngularJS
homepage. However, it makes the code and tests more complicated.

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
todo.html: remove method="POST" from form

because we do not require it at all

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
TodoController::retrieveLastNItems - check for success and failure

While our application is simple enough to guarantee that the $http.get call
is successful as long as there is no internal server error, it serves as
a good example in our tutorial to show us checking the return value
nonetheless.

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
TodoController::addItem - add missing semicolon

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>