New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@ui-router/angular-hybrid is unavailable #35
Comments
Yup, no |
I'm still in process of renaming the package and updating for angular 4.x. The latest release package is named ui-router-ng2 |
Can you please post an update here when everything will be ready? |
Checked and verified! Thanks guys!! |
Spoke to soon,
If I add it to entryComponents I get:
My bootstrap code is: |
@MrFrankel can you show me entire bootstrap file, including the Angular (4.x) module? For reference, here is what I changed to update the sample app to the latest version: ui-router/sample-app-angular-hybrid@e940739 Here is the sample app bootstrap: @NgModule({
imports: [BrowserModule, Ng1ToNg2Module],
providers: [
{ provide: NgModuleFactoryLoader, useClass: SystemJsNgModuleLoader }
]
}) class SampleAppModule {}
// Create ngUpgrade adapter
export const upgradeAdapter = new UpgradeAdapter(SampleAppModule);
// Supply ui-router-ng1-to-ng1 with the upgrade adapter.
// This adds glue to the ui-router instance for angular 1 (ng1 hosts the app)
// which allows it to route to ng2 components
uiRouterNgUpgrade.setUpgradeAdapter(upgradeAdapter);
// Register some ng1 services as ng2 providers
upgradeAdapter.upgradeNg1Provider('DialogService');
upgradeAdapter.upgradeNg1Provider('Contacts');
angular.element(document).ready(function () {
// Manually bootstrap the app with the Upgrade Adapter (instead of ng-app)
upgradeAdapter.bootstrap(document.body, ['demo']);
}); |
Sure,
package.json:
When I run your bootstrap code I get:
|
BTW, |
@MrFrankel we don't (yet) support I would have preferred to have released version 2.0.0 with support for both. However, I thought the current |
Closing because the original issue (npm package) is fixed, and we already have an issue to track the lack of @angular/upgrade/static support #26 |
@christopherthielen I downgraded to using the upgrade adapter as in the sample and it works gr8! Thanks for the help! |
cant access it vis npm.
The text was updated successfully, but these errors were encountered: