{ "id": "api/upgrade/static", "title": "@angular/upgrade/static", "contents": "\n\n
\n
\n
\n \n API > @angular/upgrade\n
\n \n
\n \n
\n

@angular/upgrade/staticlink

\n \n \n \n \n
\n\n \n\n
\n

Supports the upgrade path from AngularJS to Angular, allowing\ncomponents and services from both systems to be used in the same application.

\n\n \n\n \n\n\n \n\n

Entry point exportslink

\n \n \n \n \n \n
\n

NgModuleslink

\n \n \n \n \n \n \n \n
UpgradeModule\n \n

An NgModule, which you import to provide AngularJS core services,\nand has an instance method used to bootstrap the hybrid upgrade application.

\n\n
\n
\n \n\n \n \n \n\n \n \n \n\n \n \n \n
\n

Functionslink

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
downgradeComponent\n \n

A helper function that allows an Angular component to be used from AngularJS.

\n\n
downgradeInjectable\n \n

A helper function to allow an Angular service to be accessible from AngularJS.

\n\n
downgradeModule\n \n

A helper function for creating an AngularJS module that can bootstrap an Angular module\n\"on-demand\" (possibly lazily) when a downgraded component needs to be\ninstantiated.

\n\n
getAngularJSGlobal\n \n

Returns the current AngularJS global.

\n\n
getAngularLib\n

Deprecated: Use getAngularJSGlobal instead.

\n\n \n
setAngularJSGlobal\n \n

Resets the AngularJS global.

\n\n
setAngularLib\n

Deprecated: Use setAngularJSGlobal instead.

\n\n \n
\n
\n \n\n \n \n \n\n \n \n \n
\n

Directiveslink

\n \n \n \n \n \n \n \n
UpgradeComponent\n \n

A helper class that allows an AngularJS component to be used from Angular.

\n\n
\n
\n \n\n \n \n \n\n \n \n \n\n
\n
\n\n\n" }