error whie initialize
Closed this issue · 3 comments
Error: Slider is not a constructor
initSlider@http://www.example.com/lib/angular/angular-slider/angular-slider.js:143:34
If you don't provide an example, I can't help you.
On Sat, Aug 27, 2016, 05:43 amitgaur208 notifications@github.com wrote:
Error: Slider is not a constructor
initSlider@
http://www.example.com/lib/angular/angular-slider/angular-slider.js:143:34—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#135, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAum2TRXznzrK2KmzDWOqK8n5GSwFk9oks5qkBTegaJpZM4Juq0_
.
I also had this issue but resolved it by re-ordering my js imports in my index.html.
Make sure these lines in your code are listed before your main js files.
For example
<script src="libs/jquery/dist/jquery.js"></script>
<script src="libs/angular/angular.js"></script>
<script src="libs/bootstrap/dist/js/bootstrap.js"></script>
<script src="libs/seiyria-bootstrap-slider/dist/bootstrap-slider.js"></script>
<!-- angular-slider include -->
<script src="slider.js"></script>
<!-- My App JS comes last and so should yours -->
<script src="app.js"></script>
Closing due to inactivity.