Sharing Top Content from the Angular-sphere.

angular-kernel

  • Using AngularJS with the Closure Compiler
  • The externs are incomplete and maintained on an as-needed basis, but strive to be correct.
  • The definitions contain externs for use with the Closure compiler (aka JSCompiler).
  • Externs for individual modules should be added in separate files.
  • Passing the files to the –externs parameter of a compiler pass allows using type annotations for AngularJS objects.

## from AngularJs 1.6.1

@nodenpm: angular-kernel (0.1.0): Using AngularJS with the Closure Compiler ==============================…

directory.

The definitions contain externs for use with the Closure compiler (aka JSCompiler). Passing these files to the –externs parameter of a compiler pass allows using type annotations for AngularJS objects. For example, Angular’s $scope objects can be annotated as:

This allows JSCompiler to type check accesses to scope, give warnings about missing methods or incorrect arguments, and also prevents renaming of property accesses with advanced compilation.

The externs are incomplete and maintained on an as-needed basis, but strive to be correct. Externs for individual modules should be added in separate files.

See https://developers.google.com/closure/compiler/

Manage developer teams with varying permissions and multiple projects. Learn more about Private Packages and Organizations…

angular-kernel

Comments are closed, but trackbacks and pingbacks are open.