angular-vs-repeat
angular-vs-repeat copied to clipboard
Add Angular as a Bower dependency
Problem
If you are using a tool to bundle such as https://github.com/ck86/main-bower-files for bundling packages, angular-vs-repeat
will be bundled before angular
. This obviously causes errors, and the directive is unusable.
Solution
Setting angular as a dependency resolves the issue.
I have set the dependency as "angular": ">= 1.2.0"
since 1.2.16
is used for developing/testing the directive: https://github.com/kamilkp/angular-vs-repeat/blob/master/lib/angular.js