darul75 / angular-awesome-slider

:arrows_clockwise: Angular slider control directive
http://darul75.github.io/angular-awesome-slider/
MIT License
143 stars 63 forks source link

Trouble setting up #111

Closed slikk66 closed 9 years ago

slikk66 commented 9 years ago

The README says use:

<link rel="stylesheet" type="text/css" href="angular-awesome-slider.min.css">
<script type="text/javascript" src="angular-awesome-slider.min.js"></script>
angular.module('myApp', ['angularAwesomeSlider']);

But when I do that, it doesn't work.. I just get a text box where the slider should be. If you click on the examples: http://darul75.github.io/angular-awesome-slider/

It shows:

  <link href="css/ng-slider.min.css" rel="stylesheet" />
  <script type="javascripts/javascript" src="angular.min.js" />
  <script type="javascripts/javascript" src="ng-slider.min.js" />

If you download the ZIP, "ng-slider" isn't in there..

What gives?

I've gotten it to work sort of by going to some plunks and looking at the source, but they all use ngSlider, none of them use "awesome" anything to get the slider working.. what am I missing?

darul75 commented 9 years ago

Hi, Sorry but I had to rename the module because of ng prefix reserved for angular components. And demo page is not refactored. Have a look there

https://github.com/darul75/angular-awesome-slider/blob/master/src/index.html

darul75 commented 9 years ago

Then it depends which version you want to use. New ones use angular-awesome name.

darul75 commented 9 years ago

did it work ?

slikk66 commented 9 years ago

Yes, I got it working.. thank you for the help!