Skip to content

rzSliderPresentOnly attributes #113

Closed
@fabienL

Description

@fabienL

I'm using range slider and i try to attach scope value to the attr rzSliderPresentOnly.
My example :
Directive :
rzslider(rz-slider-model="formData", rz-slider-floor="0", rz-slider-present-only="readonly", rz-slider-ceil="100", rz-slider-always-show-bar="'true'")
Controller :
$scope.readonly = true;

I changed
this.presentOnly = (attr.rzSliderPresentOnly === true);
by
this.presentOnly = (scope.rzSliderPresentOnly === true);

and in scope declaration :
rzSliderPresentOnly: '@',
by
rzSliderPresentOnly: '=',

Example : http://jsfiddle.net/qv6cs01m/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions