docs.angularjs.org

If you are using Coffeescript, it is likely to be the culprit. Since Coffeescript always returns the value of...

blog.carbonfive.com

What if a complicated component comes along that is naturally modeled by multiple directives? This group of directives, as a...

stackoverflow.com

TL;DR You shouldn't call $scope.$apply() or $scope.$digest() inside a function that can be invoked by Angular...

makandra dev
github.com

Opinionated Angular style guide for teams by @john_papa Not everything in this guide works perfectly for us, but is...

This guide shows how to create an AngularJS application that consumes more and more memory until, eventually, the browser process...

If your angular app is not served on /, but on a different url (say /admin), links generated with ui-router...

Here is a Javascript function reloadUsers() that fetches a HTML snippet from the server using AJAX and replaces the current...

Angular 1.3+ has an alternative getter/setter pattern: You can bind ng-model to an accessor function. This is a function...

docs.angularjs.org

When you have an ngRepeat directive that uses track by, be sure to move the track by instructions to the...

github.com

Lightweight Angular JS directive to upload files Includes polyfills for old IEs. Unfortunately, their auto-loading mechanism may not work...

Sometimes you want Angular to watch an object only until a certain state is reached (e.g. an object appears in...

The Angular 1.2 way: # By default, angular returns undefined for invalid attributes which removes # the value from the form field...

makandra dev
blog.pixelastic.com

Angular 1.3 offers $setDirty for your ngModelController. If you are stuck on Angular 1.2, do this: model.$setViewValue(model.$viewValue...

airpair.com

A lot of the advice involves less separations of concerns in your code ("don't use $watch", "don't use...

When you run code inside a $watch expression that forces a repaint (e.g. by computing an element's width, or...

The Angular ngSrc directive serves to properly set an image src via Angular. As anything in Angular, it updates the...

Restangular can make use of $http's built-in response cache. # Cache response for single request Restangular.one('accounts', 123).withHttpConfig...

To bind an HTML value to ng-bind-html, you need to mark it as "trusted" first. Among other ways...

vitalets.github.io

Angular-xeditable is a bundle of AngularJS directives that allows you to create editable elements. Such technique is also known...

docs.angularjs.org

In addition to the {{ myValue }} two-way binding syntax, since Angular 1.3 there's a one-time binding syntax, prefixing...

github.com

bower-rails is a great solution for managing vendored assets in your Rails app. It feels especially much more convenient...

gist.github.com

A nice bookmarklet to analyze how many watchers have been registered on the current page. Good for keeping an eye...

github.com

A collection of useful filters for AngularJS, e.g. for fuzzy string searching, displaying numbers as percentages an more.

Capybara will fail to find tags that are missing an href attribute. This will probably happen to you every now...