I am using UpgradeAdapter to use an angular1 directive in my angular2 app. I followed the steps mentioned on angular2 upgrade guide
See this plunk for code. It is resulting me into this error -
EXCEPTION: No provider for $scope! (function (scope, elementRef) { -> $scope)
I have an angular1 directive which is element type, with controllerAs style. Also I am not using $scope in the controller code. I am trying to use this angular1 directive within my angular2 app.
So I instantiate the UpgradeAdapter and call upgradeNg1Component method on it with argument as name of my angular1 directive and I pass it in the directive input for my angular2 component.
But then it results in the above error.
Any clue what I may be missing?
Guys, check this answer http://stackoverflow.com/questions/34864545/cannot-use-angular-1-directive-in-angular-2-app-using-upgradeng1component and see if it helps
--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/dqefRUKpfQs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
There are two key things to understand about what happens in the DOM of a hybrid application: