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 11, 2014
by
yeemighty
Show whitespace changes
Inline
Side-by-side
CommonAngularGotchas.markdown
View page @
f6cfd98e
Breakdown of angular components
Module
-
can use to organize functionality
-
like a namespace for angular objects
-
modules can and often have dependencies on other modules
Controller
-
contains bare minimum business logic for a single view
-
do not use to share data between controllers
Services
-
Use to share data between controllers
Directives
-
Multi purpose can be a html element, attribute, class or all
-
Used for resuseable html elements
-
Used for organizing complex ui
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