angular-vs-repeat icon indicating copy to clipboard operation
angular-vs-repeat copied to clipboard

Add Angular as a Bower dependency

Open N1ck opened this issue 6 years ago • 0 comments

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

N1ck avatar Apr 26 '18 01:04 N1ck