I have the same issue, anyone have idea? On Thursday, 14 January 2016 01:31:34 UTC-5, Abhi wrote: > > I am using UpgradeAdapter to use an angular1 directive in my angular2 app. > I followed the steps mentioned on angular2 upgrade guide > <https://angular.io/docs/ts/latest/guide/upgrade.html> > > See this plunk <https://plnkr.co/edit/qQMTa3IpUsREZvpaNmBH> 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? >
-- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
