The official upgrade docs at angular.io mention that in order to use UpgradeComponent (to upgrade an angular.js component for use in angular) the root component of your app has to be an angular.js component. For us this wasn't an option. After googling i found a solution to this problem on SO:
In the ngModule that contains the UpgradeComponent directive, provide the $scope as shown above. This will fix the $scope missing error and get the angular.js component to work.
The official upgrade docs at angular.io mention that in order to use
UpgradeComponent
(to upgrade an angular.js component for use in angular) the root component of your app has to be an angular.js component. For us this wasn't an option. After googling i found a solution to this problem on SO:In the
ngModule
that contains theUpgradeComponent
directive, provide the$scope
as shown above. This will fix the$scope
missing error and get the angular.js component to work.