I'm trying to apply multiple attributes using the ng-style and passing the
watch variables from my controller, I could see one of the attribute is
getting applied, but not the other. Any idea what might have been going
wrong.
variables in the Controller:
this.middleWidth = this.itemsAvailable ? 1440 : 1840; //this is getting applied
this.hdrBottomBorder='1px solid rgba(128, 128, 128, 0.39)' // this is not
getting applied
view: <header ng-style="{ 'width': wrapctrl.middlewidth + 'px','border-bottom'
: wrapctrl.hdrBottomBorder}"
I did even try giving the width, style and background as separate attributes
instead of shorthand form and also tried ng-class nothing worked. any help is
highly appreciated
--
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.