Mastering Web Application
Building and Testing angular.module('admin-projects').controller('ProjectsEditCtrl', function($scope) { //controller's code goes ...
Chapter 2 Syntax for declaring the configure and run blocks As described in Chapter 1, Angular Zen the process of bootstrapping ...
Building and Testing Automated testing Software development is hard. As developers, we need to juggle customer requirements and ...
Chapter 2 Writing code test-first using the Test Drive Development (TDD) approach helps us design classes and their interfaces. ...
Building and Testing Anatomy of a Jasmine test Jasmine announces itself as the "behavior-driven development framework for testin ...
Chapter 2 Testing AngularJS objects Testing AngularJS objects is not much different from testing any other, regular JavaScript c ...
Building and Testing beforeEach(inject(function (_notificationsArchive_) { notificationsArchive = _notificationsArchive_; })); i ...
Chapter 2 Testing controllers A test for a controller follows similar a pattern to the one for a service. Let's have a look at t ...
Building and Testing //execute and verify results $scope.removeTeamMember(teamMember); expect($scope.project.teamMembers).toEqua ...
Chapter 2 say:function (name, timeout) { $timeout(function(){ $log.info("Hello, " + name + "!"); }) } }; }); The $timeout servic ...
Building and Testing Excellent, predictable mocks for the asynchronous services are one of the reasons why AngularJS tests can r ...
Chapter 2 The syntax used by the Scenario Runner makes it really easy to find DOM elements, interact with them, and assert on t ...
Building and Testing With modern tools it is possible to have extremely efficient setup. For example, here is the screenshot of ...
Chapter 2 Executing a subset of tests The Jasmine version shipped with Karma runner has very useful extensions to quickly isolat ...
Building and Testing While using the debugger statement don't forget to turn on your developer tools in your favorite browser. O ...
Communicating with a Back-end Server More often than not web applications need to communicate with a persistent store to fetch a ...
Communicating with a Back-end Server Getting familiar with the data model and MongoLab URLs The data model of the sample SCRUM a ...
Chapter 3 First of all we can see that there is a dedicated method to issue XHR GET requests. There are equivalent methods for o ...
Communicating with a Back-end Server You might be a bit surprised to see method and url among configuration options since those ...
Chapter 3 Dealing with HTTP responses A request can either succeed or fail and AngularJS provides two methods to register callba ...
«
1
2
3
4
5
6
7
8
9
10
»
Free download pdf