-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Won't work in Anguler - CLI #28
Comments
You have importing the directives SlideAbleDirective and Ng2StyledDirective .
|
Ok, now I see two input fields but no slider, but it seems that css classes have not been loaded. Could you provide also some on this? Thank you!! |
has error:moduleId should be a string in "Ng2SliderComponent" |
@AlicePrincess: We can get rid of the error: moduleId should be a string by:
|
Not working at all with angular cli, I have imported the module in app.module.ts import { Ng2SliderComponent } from 'ng2-slider-component/ng2-slider.component'; and then imported the component like this imports: [ but not working at all when i add module name in import or declaration and its not loading the page. |
Can anyone suggest me other range slider for angular cli?? |
Hi @amitgaur208 , I tried the same, but could not integrate Ng2-Slider with angular cli project. I was just able to see 2 input boxes, where we can increment/decrement the number, but no slider at all. On inspecting I did not observe a css for the same. However, we have various options available for the sliders too. It depends on the requirement you need to fulfill. |
Thanks @rach12345. I have integrated PrimeNg slider, its just awesome provided too many other tools. |
Please just add a note to the readme file saying this directive/component doesn't work on Angular-Cli. |
anyone fix this problem. I am still facing the same issue. |
Not able to integrate into Angular-cli project since it's not loading css files properly even though if I include all dependencies in my app module. |
Steps done by me below After installation of components and its dependency Step 1 : added the below lines in angular-cli.json file Step 2 : imported below line in my app module Step 3: add the below line in same app module file declarations: [ Step 4: Added below line in template <ng2-slider |
error message in console Ng2SliderComponent.html:28 ERROR TypeError: Cannot read property 'component' of undefined |
I was having the same issues as @DharmalingamViky. If you see the issue i just raised on the other package, i was able to resolve the issue with a hack. If @Bogdan1975 is able to update his node module dependecies within this package it should resolve this issue. |
After applying correction from #24 i get these error when importing ng2-slider component
Unhandled Promise rejection: Template parse errors: Can't bind to 'styleBlock' since it isn't a known property of 'div'. ( Can't bind to 'boundElement' since it isn't a known property of 'span'. (" Can't bind to 'dynamicRightLimit' since it isn't a known property of 'span'. (" Can't bind to 'parent' since it isn't a known property of 'span'. (" Can't bind to 'step' since it isn't a known property of 'span'. (" Can't bind to 'boundElement' since it isn't a known property of 'span'. (" Can't bind to 'dynamicLeftLimit' since it isn't a known property of 'span'. (" Can't bind to 'step' since it isn't a known property of 'span'. ("
I import the component in my module.declarations property with this
import {Ng2SliderComponent} from "ng2-slider-component/ng2-slider.component"; ... declarations: [Ng2SliderComponent]
Tested with:
typescript: "~2.0.3"
angular/compiler-cli: "^2.3.1"
angular-cli: 1.0.0-beta.24
The text was updated successfully, but these errors were encountered: