Directive for Route Handling
lessonDuration 3m 2sFree
Use AngularJS $rootScope within a directive to detect route change errors and display it to the user.
Browse
Find courses, lessons, articles, talks, and podcasts.
455 results for "angular"
Showing 433–455 · Page 19 of 19
lessonDuration 3m 2sFree
Use AngularJS $rootScope within a directive to detect route change errors and display it to the user.
lessonDuration 3m 45sFree
In AngularJS redirectTo is often assigned a simple static string and thus points invariably to one location (redirectTo: '/mypath'). You can customize this, by setting redirectTo as a function, which arguments are the route params. For instance, if you hit the route "/pizza/peperoni", you can compose your redirection to be "/pizzas", or whatever suits your needs
lessonDuration 2m 5sFree
This video shows how the AngularJS 'resolve' feature can be used during the config phase before your controller has been instantiated. This gives you the opportunity to ensure everything has been setup properly that your controller depends on, thus allowing your controller to execute safely based on its assumptions.
lessonDuration 3m 7sFree
An alternative to inject an AngularJS template by using $templateCache, using .get() and .put() methods
lessonDuration 9m 14sFree
This episode is explaining the naming conventions behind for the arguments passed to the factory functions for controllers, directives, linking functions, etc., its implications in regard to Angular’s dependency injection, minification side effects on arguments, and how to prevent them.
lessonDuration 2m 55sFree
This episode explains the config phase of an AngularJS application and how is it special in regards to $routeProvider (routing configuration) and providers in general.
lessonDuration 7m 55sFree
Building a demo AngularJS directive named Zippy using ng-model, ng-click and transclusion (no controller)
lessonDuration 3m 30sFree
A review of the three types of isolate scope binding methods in AngularJS. The "@" operator is used for reading an attribute, "=" is used for creating a bi-directional two way binding, and "&" is used to make a call on something a controller scope.
lessonDuration 4m 22sFree
Demonstrates an “outside the box” approach to organizing controllers and directives by collecting them into objects and them passing those object to AngularJS.
lessonDuration 2m 49sFree
AngularJS makes your HTML very declarative. However, seeing the functions invoked in your HTML may not offer any clues as to what controller defines said functions. This video offers an approach to solving this problem by returning the controller in the controller definition so that we can opt for something like `ng-click="SomeCtrl.doesSomething()"` instead of simply writing `ng-click="doesSomething()"`.
lessonDuration 4m 51sFree
AngularJS isolate scopes can be a bit cryptic when you are first starting out. In this lesson, John looks at the attribute or "@" designator in your isolate scopes.
lessonDuration 2m 48sFree
Uh oh. **Transclusion**? What the heck? It's a big word, but it is actually a very simple concept. In this episode John shows you how transclusion is used in your AngularJS directives...
lessonDuration 6m 3sFree
The "&" in your isolated scopes within your AngularJS application will allow you to invoke a method within the scope that your directive lives in.
lessonDuration 6m 38sFree
By adding an isolated scope object to your AngularJS directive you can insure that each element using that directive has its own scope. This prevents it from affecting sibling directives and encapsulates the directive.
lessonDuration 4m 43sFree
Often in AngularJS we want to share information between controllers and directives. One way to do this is by passing the scope, but this makes the directive reliant on the scope having the methods you want to run. This lesson shows you a cleaner way that you can pass methods to the directive using an attribute and decouple controllers from directives. This in turn makes your directives more generic/reusable.
lessonDuration 2m 13sFree
AngularJS comes with several handy filters that you can use out of the box. These filters can be combined to create more complex filtered results.
lessonDuration 3m 29sFree
Bring your directives to life with custom behaviours. This is the recommended way of interacting with the DOM in AngularJS. If you find yourself modifying the DOM inside of your controllers (bad), directive behaviours are your solution (awesome).
lessonDuration 3m 1sFree
By default AngularJS directives can be used with elements, attributes, classes, **and** comments. Many times we want to restrict it to one or more of those to control how a directive will be used. This lesson digs into how and why to use Directive restrictions.
lessonDuration 2m 8sFree
Directives might just be the **killer** feature of AngularJS. Directives allow us to extend the grammar of the web through reusable HTML elements, attributes, and classes.
lessonDuration 3m 2sFree
This brief video examines the importance of a single `.` within your AngularJS application. It uncovers a potential gotcha when it comes to inheritence.
lessonDuration 2m 18sFree
Many times while building an AngularJS application you'll need to manipulate data, and it doesn't make sense to do it with a Controller method. Luckily you have Filters, which are particularly well suited for manipulating text within your HTML views. This handy tool uses a simple syntax to create highly reusable functionality for your apps.
lessonDuration 5m 13sFree
If AngularJS Controllers are the glue of an application, how do they communicate and pass data around? This introduction to service factories will shed some light on that question.
lessonDuration 1m 11sFree
Controllers are the 'glue' of an AngularJS application. They connect your markup with your data and act as a sort of switchboard.