From 0cb4617e4cd150b1312ab90549b31e208aaccb8d Mon Sep 17 00:00:00 2001
From: Milan Lempera An AngularJS Style Guide for Closure Users at Google
(or not apply) these recommendations, as relevant to their own use cases.
This document describes style for AngularJS apps in google3. This guide - supplements and extends the + supplements and extends the Google JavaScript Style Guide.
Style Note: Examples on the AngularJS external webpage, and many external apps, are written in a style that freely uses closures, favors functional inheritance, and does not often use + href="https://google.github.io/styleguide/javascriptguide.xml?showone=JavaScript_Types#JavaScript_Types"> JavaScript types. Google follows a more rigorous Javascript style to support JSCompiler optimizations and large code bases - see the javascript-style mailing list. This is not an Angular-specific issue, and is not discussed further in this style guide. @@ -152,7 +152,7 @@
Controllers are classes. Methods should be defined on MyCtrl.prototype. - See + See the JavaScript style guide
Google Angular applications should use the 'controller as' style to export the controller