Skip to content

AngularJS not found on window

Chris Thielen edited this page Feb 12, 2019 · 1 revision

If you get an error AngularJS not found on window you need to tell ngUpgrade how to access the angular variable via the setAngularJSGlobal() function.

For example:

import * as angular from 'angular';
import {setAngularJSGlobal} from '@angular/upgrade/static';
setAngularJSGlobal(angular);
Clone this wiki locally