Skip to content

AgentO3/angular-good-bad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 

Repository files navigation

Better Angular

At VividCortex we love Angular! It abstracts away the need to directly modify the DOM. It provides an excellent set of methods to help bring structure to your code. Also it's packed with conviance methods to help work with JavaScript objects.

Intro

  • Frontend Brainiac at VividCortex
  • Fairly new to AngularJS
  • Team members

Keeping it tidy with JSLint

  • JS needs good oversight
  • Helps you find bugs
  • Easy way to enforce coding style

Coding Style

  • Using self closing functions

Application folder structure

  • Divide your code modules by view
  • Utilites to share
  • Working to support async deps
  • Breaking components into seperate project

Keep your eye on $watch

  • Don't use recursive $watch
  • Use hashes to monitor change
  • Double and triple check your changes
  • Keep the code simple

Scope

  • Click on element $0 ng.element
  • Using MainCtrl to create a shared scope. Future is scope inhertiance.

Templating

  • Script tag template

Directives

IDE

  • angularjs webstorm plugin
  • zen coding
  • Karam

Testing

  • Test Services First
  • Easier to test
  • Angular Services are Singletons

Future Reading

About

A talk about the good and bad thing to do in AngularJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published