Skip to content

Commit

Permalink
Specify inputs for downgraded uiViewNgUpgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrimmer authored and christopherthielen committed May 15, 2017
1 parent 4b7fce0 commit a47445d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/angular-hybrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,10 @@ function applyHybridAdapter(ng2Injector: Injector) {
// Downgrade the UIViewNgUpgrade ng2 Component to an ng1 directive.
// The directive is used in a (generated) view template by the (host) ng1 ui-router,
// whenever it finds a view configured with a `component: <Ng2ComponentClass>`
upgradeModule.directive("uiViewNgUpgrade", <any> downgradeComponent({ component: UIViewNgUpgrade }));
upgradeModule.directive("uiViewNgUpgrade", <any> downgradeComponent({
component: UIViewNgUpgrade,
inputs: ['name']
}));

upgradeModule.run(['$injector', (ng1Injector: $InjectorLike) => {
let $uiRouter: UIRouter = ng1Injector.get('$uiRouter');
Expand Down

0 comments on commit a47445d

Please sign in to comment.