You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the first time I use this module, and I got this error:
angular.min.js:117TypeError: element.typeahead is not a function
at initialize (http://cours-apostrophe.dev/vendor/js/angular-bootstrap3-typeahead.js:79:28)
at prepare (http://cours-apostrophe.dev/vendor/js/angular-bootstrap3-typeahead.js:101:11)
at link (http://cours-apostrophe.dev/vendor/js/angular-bootstrap3-typeahead.js:105:7)
at ja (http://cours-apostrophe.dev/vendor/js/angular/angular.min.js:80:350)
at n (http://cours-apostrophe.dev/vendor/js/angular/angular.min.js:66:28)
at g (http://cours-apostrophe.dev/vendor/js/angular/angular.min.js:58:305)
at g (http://cours-apostrophe.dev/vendor/js/angular/angular.min.js:58:322)
at g (http://cours-apostrophe.dev/vendor/js/angular/angular.min.js:58:322)
at g (http://cours-apostrophe.dev/vendor/js/angular/angular.min.js:58:322)
at n (http://cours-apostrophe.dev/vendor/js/angular/angular.min.js:65:473) <input type="text" name="matiere" placeholder="Que voulez-vous apprendre" bs3-typeahead="" bs3-source="states" ng-model="matiere" class="ng-pristine ng-untouched ng-valid">
I included the bootstrap3-typeahead.js, then angular-bootstrap3-typeahead.js in my HTML code.
I added binded the elementlink parameter of the directive to a jquery object, and everythings works fine 👍
link: function link(scope, element, attrs, controller) {
element = $(element);
......
The text was updated successfully, but these errors were encountered:
This is the first time I use this module, and I got this error:
I included the bootstrap3-typeahead.js, then angular-bootstrap3-typeahead.js in my HTML code.
I added binded the
element
link parameter of the directive to a jquery object, and everythings works fine 👍The text was updated successfully, but these errors were encountered: