Found a directive to interplate style tag
http://alexbaden.me/interpreting-data-binding-in-style-tags-with-angular/
On Friday, 24 April 2015 09:41:27 UTC+5:30, Sachin Saluja wrote:
>
> I have many many buttons in page and a input for user to enter color.
>
> Is there a better way than below code?
>
> <button ng-style="myStyles>
> <button ng-style="myStyles>
> .....
> ....
>
> <input type="text" ng-modal="myStyles.color">
>
> Can we generate a dynamic class like below?
>
> <style>
> button {
> color : {{myStyles.color}}
> }
> </style
>
--
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.