VinceG / twitter-bootstrap-wizard

This twitter bootstrap plugin builds a wizard out of a formatter tabbable structure. It allows to build a wizard functionality using buttons to go through the different wizard steps and using events allows to hook into each step individually.
MIT License
1.39k stars 676 forks source link

Calling $('#rootwizard').bootstrapWizard({'tabClass': 'bwizard-steps'}) in a controller layer #213

Open henriquearaujo opened 7 years ago

henriquearaujo commented 7 years ago

If I have a controller layer in my app, how can I call the $('#rootwizard').bootstrapWizard({'tabClass': 'bwizard-steps'}) ? I've already tried with $scope var and nothing happens.

Another thing is, I'm having a problem with Jquery dependency. The error is: Uncaught ReferenceError: jQuery is not defined at dependencies.js:5970 in the line: onTabShow: null };})(jQuery);

jabberdog commented 7 years ago

How have you incorporated the jQuery dependancy? A JS file with jQuery defined inside?

henriquearaujo commented 7 years ago

I'm incorporating the "jquery.bootstrap.wizard.js" in my gruntfile.js at "dependencies: { src: ["

jabberdog commented 7 years ago

Knowing this only half of the issue but could you provide a gist or a snippet of your gruntfile so we can see it for ourselves? And also the package.json

henriquearaujo commented 7 years ago

Thanks jabberdog but we made a simple component with angular js .