doorman
doorman

Reputation: 16949

Collection repeat standalone directive

Is it possible to use the collection-repeat directive only with angularjs and without Ionic? The directive is available at https://github.com/driftyco/ionic/blob/master/js/angular/directive/collectionRepeat.js .

Thanks!

Upvotes: 0

Views: 484

Answers (1)

meriadec
meriadec

Reputation: 2983

Yep. But not in 10 seconds :)

First, include the directive file into your project, and transform this (L135) :

IonicModule
.directive('collectionRepeat', ...

Into this :

angular.module('yourModuleName')
.directive('collectionRepeat', ...

Then, copy too the two ionic dependencies of collectionRepeat which are $collectionRepeatManager and $collectionDataSource, repeating the same modification.

You should be done.

Upvotes: 3

Related Questions