Showing posts from June, 2015

Angular JS, Require JS and Karma

Initial project setup and unit test cases using Mocha and Chai A TODO Application We will be writing a sample TODO app which helps our users to remember important tasks. During the process of development we will go through various concepts of AngularJS and how it can be used with RequireJS for dependency management and lazy loading of javascript files. To keep our code in best possible quality, we will be relying on unit cases (and plenty of it) using Mocha and Chai which will run on Karma Iteration 1 - Setup: To start with any angular js application we need to create a HTML page with all the css and javascript depenendencies defined. We will include below dependencies on our HTML 1.   Bootstap CSS 2.  Angular JS 3.  Require JS Our end result should look like below: <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport"