This example helps you understand the working of directive with respect to UI element. One can control the behavior of UI element using directive in AngularJs. There can be many other purpose for which directive can be useful. I could only see directive mostly use to manage UI behavior.
Few important things:
1. We can use thermometer inside div as attribute
2. We can use data-thermometer inside div as mentioned below.
3. We can use attr.observe or attr.$observe
Few important things:
1. We can use thermometer inside div as attribute
2. We can use data-thermometer inside div as mentioned below.
3. We can use attr.observe or attr.$observe
No comments :
Post a Comment