Skip to content

Instantly share code, notes, and snippets.

@alwayrun
Forked from shuhei/angular.md
Created June 8, 2016 01:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alwayrun/fdc09656a4f799629ec3820ef65c8752 to your computer and use it in GitHub Desktop.
Save alwayrun/fdc09656a4f799629ec3820ef65c8752 to your computer and use it in GitHub Desktop.
Angular Resouces

Angular Resources

I don't mean $resource here.

Basics

Data

Sharing Data

Large Application

A talk by the author of angular-data.

  • We need convention.
  • Store data in Services. Expose them with Controllers.
  • Organize files by feature.
  • (?) Lazily load modules.
  • (?) Understand $scope lifecycle and $watch.
  • (?) Use $scope.$apply for 3rd party libs.

Security

CSRF Prevention

Angular's $http provides CSRF prevention mechanism, they call it as XSRF though. The machanisim utilizes cookie and HTTP header. We can customize the names of them.

Build

Best Practices

Core

Angular 2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment