Using ng-messages with ng-animate
lessonDuration 4m 48sFree
ngMessages works great with AngularJS's ngAnimate and makes the appearance of your messages more awesome.
Browse
Find courses, lessons, articles, talks, and podcasts.
7,176 resources
Showing 6,769–6,792 · Page 283 of 299
lessonDuration 4m 48sFree
ngMessages works great with AngularJS's ngAnimate and makes the appearance of your messages more awesome.
lessonDuration 4m 13sFree
ng-messages is a directive added in AngularJS 1.3 that is used to display messages to the user. This is usually in relation to form error messages, and cleans up the syntax required to show feedback messages to the user.
lessonDuration 4m 7sFree
You can use React's TestUtils addon to simulate events for your components.
lessonDuration 2m 39sFree
One really handy trick with angular's ng-messages module is the ability to reuse messages with ease. With reuse comes the need to override messages for specific use cases.
lessonDuration 2m 52sFree
In AngularJS 1.3 there is a nice shorthand for `$q.defer()`. In fact, it removes the need for calling `defer` at all!
lessonDuration 3m 11sFree
The `$watchCollection` method on Angular scopes provides a convenient way to watch for changes on the *shallow* properties of an object.
lessonDuration 1m 49sFree
ocLazyLoad offers several ways to lazy load your AngularJS modules. This lesson looks at the syntax for lazy loading dependencies declared in the module definition.
lessonDuration 5m 20s
D3 has some great tools that make animating your charts relatively simple. We will take a look at create smooth animated transitions with lots of options.
lessonDuration 1m 6sFree
ocLazyLoad will also load non-Angular libraries in the lazy way.
lessonDuration 2m 40sFree
We've [looked at lazy loading with ocLazyLoad](https://egghead.io/lessons/angularjs-lazy-loading-angular-modules-with-oclazyload) previously, but what if we are using ui-router and want to lazy load modules when we change states?
lessonDuration 5m 33sFree
AngularJS's two-way binding is one of the "killer features" of the framework. The problem is that too many bindings can cause performance issues! Many times, all you need to do is bind a single time to get the data to display, and don't need dynamic two-way binding. In Angular 1.3, they've added new syntax to enable one-time data bindings.
lessonDuration 2m 25sFree
The ngChange directive will allow you to monitor value changes on input elements in your AngularJS applications
lessonDuration 3m 50sFree
Filters in AngularJS can be a big performance hog. As of Angular 1.3, filters are "stateless" by default. This means that given the same input, a filter will not even run, and simply return the previous value.
lessonDuration 7m 5sFree
Sometimes you might need to modify HTTP requests and responses. This could be for a variety of reasons such as adding global logic handling for HTTP errors. With interceptors, you can easily accomplish this in your Angular applications.
lessonDuration 2m 42sFree
With Angular 1.3 you now have access to `$scope.$watchGroup`. This allows you to monitor an array of expressions for change. This is useful when you want to perform the some logic when any item in a group changes.
lessonDuration 4m 49sFree
[AngularJS Batarang](https://chrome.google.com/webstore/detail/angularjs-batarang/ighdmehidhipcmcojjgiloacoafjmpfk?hl=en) is a powerful Chrome extension that makes your developer tools "Angular aware".
lessonDuration 8m 15sFree
Refactoring is a fact of life, and the "extract method" refactoring is the cornerstone of improving your code.
lessonDuration 6m 49sFree
Logic often gets added to our loops. We need to iterate over a collection, and get the sum of values, for instance. This approach can lead to complicated methods, that are hard to test. Using Lodash (Underscore), we are going to extract logic in a large loop body into well named methods. The result will be cleaner and easier to understand.
lessonDuration 6m 3sFree
When you minify your code with a tool like Uglify, the resulting minified file will rename variables. This is a problem for AngualrJS, which uses parameter names to provide injected dependencies. You **could** use the array notation manually, but *no human should ever have to suffer this fate*, **or** you could use [ng-annotate](https://github.com/olov/ng-annotate) with Grunt, and let your helper robots get the job done instead.
lessonDuration 6m 16sFree
Events are a useful tool for triggering functionality based on something that has occurred in your application. In this lesson, we will build upon the concepts from the [create a scope decorator](https://egghead.io/lessons/angularjs-create-a-scope-decorator) lesson to create an event decorator that can be used to cleanly compose functionality on top of Angular events.
lessonDuration 6m 32sFree
With AngularJS's $scope.$watch, you are able to monitor scope values for changes. This can be useful for validation of user input, as an example.
lessonDuration 1m 40s
The spread operator allows you to "explode" an array into its individual elements.
lessonDuration 1m 1s
Shorthand properties allow you to compose complex objects from other objects.
lessonDuration 4m 37sFree
*if*-statements can add serious complexity and beg for refactoring. You can use polymorphic functions to simplify your ifs and dynamically call the appropriate method.