I'm experimenting with the Angular Material framework, and really enjoying every feature! I really like the md-whiteframe directive to raise certain containers. However, I'm noticing there are different ways of using it.
The Angular Material Documentation uses it as a directive:
It's actually very simple. The attribute directive
md-whiteframe adds the
The pro for using JS and the directive is also that is has validation for the
dp value. And of course it is a nice abstraction, because maybe the class name changes but your directive API doesn't.