jacobscarter / angular-countdown

Countdown Timer for Angular 1.x Apps
MIT License
1 stars 0 forks source link

i got [jqLite:nosel] Looking up elements via selectors is not supported by jqLite! error #3

Open GaurangGhinaiya opened 8 years ago

GaurangGhinaiya commented 8 years ago

When i try to use this directive with ionic then i am getting this error.

[jqLite:nosel] Looking up elements via selectors is not supported by jqLite!

So how could resolved it.

jacobscarter commented 8 years ago

The problem is here: https://github.com/jacobscarter/angular-countdown/blob/master/dist/angularcountdown.js#L1223

Instead of angular.element('#myIdHere') it needs to be something like:

angular.element( document.querySelector( '#myIdHere' ) );

I will fix it and republish the repo as soon as possible but if you need an immediate fix you can change the source code to use the method above.

GaurangGhinaiya commented 8 years ago

One more thing i am using this with ng-repeat so take cate of that as well. Because with ng-repeat there is same id multiple time.