Skip to content
fossilized created page: CommonAngularGotchas authored by yeemighty's avatar yeemighty
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