Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Changes
Page history
fossilized created page: CommonAngularGotchas
authored
Aug 12, 2014
by
yeemighty
Show whitespace changes
Inline
Side-by-side
CommonAngularGotchas.markdown
View page @
c6e8cf4b
...
...
@@ -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