Skip to content
fossilized created page: CommonAngularGotchas authored by yeemighty's avatar yeemighty
......@@ -17,7 +17,8 @@ Directives
- 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
- controllers are passed in through controller or (link + require) attributes
- if the scope is not isolated in the html, using the controller property set to a blank scope will isolate it
Page breaks and hangs(cannot F12) when a custom directive is involved
- Usually related to a bad templateURL in the directive
\ No newline at end of file