Angular: BDD with Angular JS

In the previous post, we discussed the importance of Behavior Driven Testing but the examples in the article went straight to JavaScript rather than Angualar. We need to modify the example to be Angular but to do so, we need a few more fundamentals.

 

So let’s return to the program and modify our index.hml. Make sure you have Bootstrap.css.

You’ll also need to create your first Controller. The role of the controller is to be able to provide data to the view which is identified as VM or View Model.

You’ll also need to build another directive: ng-repeat.

The job of ng-repeat is similar to foreach loop.

Read the rest of the tutorial here: http://blog.falafel.com/Blogs/jesse-liberty/2014/04/11/angular-part-3-bdd-with-angularjs

 

Leave a Reply

Your email address will not be published. Required fields are marked *