Skip to content
fossilized created page: CommonAngularGotchas authored by yeemighty's avatar yeemighty
......@@ -13,7 +13,8 @@ Services
Directives
- Multi purpose can be a html element, attribute, class or all
- Don't use self-closing tag '''<light-a-fire/>''' use ```<light-a-fire></light-a-fire>``` instead
- For element tags a ':' or '-' in the directive name will search for the camel case i.e.: light-a-fire will look for a directive named lightAFire
- Don't use self-closing tag ```<light-a-fire/>``` use ```<light-a-fire></light-a-fire>``` instead
- Used for resuseable html elements
- Used for organizing complex ui
- controllers are passed in through link and require attributes
......
......