Skip to content
Dean Sofer edited this page Aug 26, 2013 · 21 revisions
  • Namespace distributed code
    This means using bs- or ui- or something. You could use your initials if you want but you may find it becomes more meaningful if you prefix code by relevant grouping breakdowns (such as loc- for location services or i18n- for translation)
  • Only use .$broadcast(), .$emit() and .$on() for atomic events
    This means events that are relevant globally across the entire app (such as a user authenticating or the app closing). If you want events specific to modules, services or widgets you should consider Services, Directive Controllers, or 3rd Party Libs

Clone this wiki locally