mgcrea/angular-strap — pull request #149 by wesleycho (2013-05-23 17:49:06+00:00)
Title: Improved efficiency of buttonSelect.js

The [Angular docs](http://docs.angularjs.org/guide/directive#attributes) mention that `attrs.$observe` is more efficient than `scope.$watch`:

> _observing interpolated attributes_: Use $observe to observe the value changes of attributes that contain interpolation (e.g. src="{{bar}}"). Not only is this very efficient but it's also the only way to easily get the actual value because during the linking phase the interpolation hasn't been evaluated yet and so the value is at this time set to undefined.

I rewrote the watcher in `buttonSelect.js` so that it makes use of it instead.