Accessing Services from Console
lessonDuration 2m 39sFree
Using the Chrome console, you can access your AngularJS injectable services. This is down and dirty debugging, and can be a lifesaver in troubling times.
Browse
Find courses, lessons, articles, talks, and podcasts.
455 results for "angular"
Showing 409–432 · Page 18 of 19
lessonDuration 2m 39sFree
Using the Chrome console, you can access your AngularJS injectable services. This is down and dirty debugging, and can be a lifesaver in troubling times.
lessonDuration 1m 49sFree
One of the beautiful things about dependency injection in your AngularJS apps is the ability to replace dependencies in your unit tests. In this lesson Trevor looks at how to configure Jasmine spies as injectable replacements for dependencies for testing.
lessonDuration 1m 36sFree
`$interval` provides an excellent service for timed operations in your AngularJS apps. It has the advantage over setInterval in "normal" Javascript in that it is aware of Angular's view cycles, as well as being mockable for unit tests. Additionally, it returns a promise and provides a lot of flexibility.
lessonDuration 2m 35sFree
Orchestrating the handling of multiple promises in AngularJS is simple if you take advantage of `$q.all`. Using `$q.all` will take your promises, wait until they have all resolved and return the result of all the promises as an ordered array.
lessonDuration 3m 40sFree
In this lesson Trevor looks at testing AngularJS controllers with scope inheritance with Jasmine and test spies.
lessonDuration 6m 38sFree
The ui-router library for AngularJS provides the ability to name views within your application. This is useful for dividing up your application into sections, and changing the content of a section based on the current state.
lessonDuration 1m 23sFree
In this video Brett shows us how to create a simple mediator for cleanly separating concerns within your application. This is the first in a series that will build a robust, fully tested mediator for events in your AngularJS application.
lessonDuration 4m 50sFree
AngularJS supports "mixins" with angular.extend, but this approach has some drawbacks. In this video Brett takes a look at a more robust approach to mixins inspired by the Ruby programming language.
lessonDuration 2m 8sFree
Using Jasmine, this lesson will look at testing an AngularJS service.
lessonDuration 2mFree
Digging a little deeper into unit testing an AngularJS directive, this lesson looks at testing binding across multiple scopes.
lessonDuration 1m 57sFree
Unit test your AngularJS directives that make changes to $scope as well as their own isolated scopes.
lessonDuration 3m 45sFree
In this lesson John looks at how to integrate the popular TweenMax library with `ngAnimate` to get animation effects in an AngularJS application.
lessonDuration 2m 26sFree
This brief intro to unit testing with AngularJS takes a look at how to configure a test, compile an element, and access AngularJS within your tests.
lessonDuration 1m 39sFree
Extending the semantics of HTML is one of the core features of AngularJS, however, you can use AngularJS without any custom markup.
lessonDuration 2m 14sFree
In this lesson you will unit test a simple AngularJS directive
lessonDuration 4m 28sFree
In AngularJS, hierarchical directives have the ability to communicate with one another via their defined controllers. With simple syntax/notation you are able to define links between directives and their controllers.
lessonDuration 3m 28sFree
`ng-min` removes the headache of needing to associate strings with parameter names for minified AngularJS code.
lessonDuration 4m 27sFree
This lesson describes fundamentals for creating custom directives (broken down into Components and Containers). The component demonstrates how to use the service template to create a simple clock directive whereby AngularJS will bind with objects in the template property and access element attributes. The component example will provide a demonstration of how you can nest components and containers, taking advantage of AngularJS transclusion capabilities.
lessonDuration 1m 26sFree
This short video tutorial looks at the `ng-repeat-start` and `ng-repeat-end` elements added in AngularJS 1.2
lessonDuration 5m 20sFree
The "controller as" syntax was added to AngularJS 1.2. This syntax abstracts the use of `$scope` in controllers, simplifying the syntax of your controllers.
lessonDuration 4m 24sFree
In this lesson the the route life cycle, John steps through the AngularJS Route life cycle using the routeChangeStart and routeChangeSuccess events. By inspecting the current and previous objects, we can see Angular's awareness of the previous route and controller as well as the current or targeted route and controller. Through the use of the resolve property, the routeChangeSuccess event will be delayed until the promise has been completed.
lessonDuration 2m 55sFree
Injectors inject your dependencies in your AngularJS application. For the most part it will automatically work when constructing objects (controllers) and provide the dependencies defined with your service/factory/provider, it can also be injected itself and be used for invoking methods with injection.
lessonDuration 3m 23sFree
This video shows a more generalized way of using the AngularJS resolve feature with controllers to organize the conditions before the controller is instantiated. The video shows how to condition the controller's instantiation on more than one set of actions (function), and even pass values from the condition processing into the controller's scope once it gets instantiated.
lessonDuration 2m 14sFree
John continues to dive into routing in AngularJS using ng-view. He provides some simple examples for passing in path parameters using $routeParams.