From 0cb4617e4cd150b1312ab90549b31e208aaccb8d Mon Sep 17 00:00:00 2001
From: Milan Lempera
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 @@ goog.provide('hello.versions.Versions');
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