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.

Reply via email to