Anyone??

On Tuesday, 10 March 2015 16:43:31 UTC+5:30, KJ wrote:
>
> Hi,
>
> (using angular and typescript)
> I have a toggle switch directive as:
>
> return {
> restrict: 'E',
> scope: {
> ngModel: '=',
> onText: '@',
> offText: '@',
> title: '@', 
> },
> template:
> '<label class="switch-light well">' +
> '  <input type="checkbox" ng-model="ngModel">' +
> '  <span>' +
> '    {{title}}' +
> '    <span class="switch-light-option" ng-class="{ 
> \'switch-light-checked\': !ngModel}">{{offText}}</span>' +
> '    <span class="switch-light-option" ng-class="{ 
> \'switch-light-checked\': ngModel}">{{onText}}</span>' +
> '  </span>' +
> '  <a class="btn btn-primary"></a>' +
> '</label>'
> };
>
> In my html I am using this as:
> <toggle-switch ng-model="myValues" on-text="Enabled" off-text="Disabled" 
> ></sts-toggle-switch>
>
> Now I want to disable the above one. How can I do so. 
>
> I am pretty new to angular so any inputs would be appreciated.
>
> Thanks
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to