Link Details

Link 1150985 thumbnail
User 225256 avatar

By mswatcher
via bennadel.com
Submitted: May 07 2014 / 11:54

Most of the time, when I used the ngStyle directive in AngularJS, I'm using it to set some kind of offset property (ex, height, width, left, right, bottom, top, ex.). This isn't always the case; but, I'd hazzard a guess that these kinds of CSS properties account for 80% of my ngStyle usage. Furthermore, when I set these values, I'm almost always using "px" as my unit of measurement. As such, I wanted to see if I could create a version of ngStyle that automatically added the "px" unit
  • 2
  • 0
  • 104
  • 264

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (2)



Voters Against This Link (0)



    Apache Hadoop
    Written by: Piotr Krewski
    Featured Refcardz: Top Refcardz:
    1. Play
    2. Akka
    3. Design Patterns
    4. OO JS
    5. Cont. Delivery
    1. Play
    2. Java Performance
    3. Akka
    4. REST
    5. Java