Giter Site home page Giter Site logo

Comments (10)

rach12345 avatar rach12345 commented on July 17, 2024 14

@theromie
Define your someRange in corresponding ts file as:
someRange=[1, 50]

This is the range you want your slider to cover. You might be missing either the syntax/spelling of this.

With ng2-nouislider, the major reason of getting "9.2.0 start is required" error is, the binding of [(ngModel)]. Once this is resolved, I believe your slider should work fine!

from ng2-nouislider.

skulptur avatar skulptur commented on July 17, 2024 12

It's because of this line:
https://github.com/tb/ng2-nouislider/blob/master/src/nouislider.ts#L91

Your someRange probably doesn't have a default value or it doesn't exist. Check for spelling.

from ng2-nouislider.

emonidi avatar emonidi commented on July 17, 2024

I get the same error. Any ideas what am I doing wrong?

from ng2-nouislider.

ValerioBulla avatar ValerioBulla commented on July 17, 2024

I have an app with some optional inputs, and since their initial value is undefined I get this error as well. Any chance I could get this to work without a default value?

from ng2-nouislider.

tb avatar tb commented on July 17, 2024

@ValerioBulla If input is optional and you use ngIf to hide it you wont get this error.

from ng2-nouislider.

ValerioBulla avatar ValerioBulla commented on July 17, 2024

@tb I tried using ngIf before, but of course it prevents using the slider to input a value since it's hidden.

from ng2-nouislider.

theromie avatar theromie commented on July 17, 2024

thanks @rach12345 its working by defining in component

from ng2-nouislider.

chriseugenerodriguez avatar chriseugenerodriguez commented on July 17, 2024

nope not working. or any clear direction.

from ng2-nouislider.

gp187 avatar gp187 commented on July 17, 2024

Still not working

from ng2-nouislider.

parthdevloper avatar parthdevloper commented on July 17, 2024

Hello guyz,

Just use the below-mentioned code, It will help to resolve the error:

HTML:
<nouislider [min]="5" [max]="10" [step]="0.05" [(ngModel)]="someRange" ></nouislider>

TS:

someRange=[6, 7]
constructor() { }
ngOnInit(): void {
}

module.TS:

import { NouisliderModule } from 'ng2-nouislider';

@NgModule({
imports: [
CommonModule,
NouisliderModule
]
})

Let me know how it works with you... 👍

from ng2-nouislider.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.