Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

angularjs How to populate ng-style with object of CSS

vm.styler=function(props){
    var styles={};
    props.forEach(css=>{
        styles[css.name]=css.value
    })
    return styles;
}
 
PREVIOUS NEXT
Tagged: #angularjs #How #populate #object #CSS
ADD COMMENT
Topic
Name
1+8 =