Ng-Conf just happened last week in Salt Lake City, Utah. It was awesome. Oh blast, I blew the punch line. Anyway, here’s my take.
When you change routes in Angular, the page title doesn’t change automatically, but this can be done rather simply.
Directives with isolate scope do not inherit their scope from their parent. Thus, the pattern to test them is slightly different.
Angular’s ngClicks can be attached to anything. This makes it easy to add interactivity to elements on the DOM. Your program might require that these click callbacks be disabled at certain points, such as during form processing. ngClick doesn’t have a toggle built in. Let’s build one that might help.
It’s sometimes useful to be able to preload or resolve data previous to an Angular view being displayed. Such was the case recently for our current user object. It simplified a lot of things in the app to have the guarantee of a loaded current user previous to displaying pages. The Angular router has a great mechanism built in to do just this sort of thing, called
Usually attributes of your Angular controllers are not namespaced. But you can namespace them. But you might not want to.
Angularjs has some sweet built-in directives. Sometimes it can be confusing when to use the curly braces around expressions in directive attributes and when not to. Here are a couple rules.
ngStyle is the directive used to set inline style attributes with AngularJs. Most of the time, it’s straightforward to use.
background css attributes can be just slightly trickier.
There are a couple ways to make cross domain requests from a client browser. One method is called Jsonp or Json with padding. The AngularJs library makes this really simple.