Skip to content
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

I can not see the new page #771

Closed
mrodfuentes opened this issue Feb 23, 2017 · 6 comments
Closed

I can not see the new page #771

mrodfuentes opened this issue Feb 23, 2017 · 6 comments
Assignees
Labels

Comments

@mrodfuentes
Copy link

  • I'm submitting a ...
    [x] bug report

I have followed the guide for create a new page https://akveo.github.io/ng2-admin/articles/013-create-new-page/ . I can see the option in the menu "New Page" but when I click on this option the same page before (for example dashboard) is shown.

I expected a new page with the content "My page content here" accordingly to the guide.

Best Regards
Miguel Rodríguez

@jtrebess
Copy link

jtrebess commented Feb 24, 2017

Hi,
I had the same problem.
I solved it by changing the route in pages.routing.ts from:
{ path: 'new', loadChildren: () => System.import('./new/new.module') }
to:
{ path: 'new', loadChildren: 'app/pages/new/new.module#NewModule' },
this is the way all routes in pages.routing.ts are implemented.

The next step was changing new.module.ts from:
export default class NewModule {}
to:
export class NewModule {}
I checked other Modules and no one had the default in its export class
After these changes it should work.

Best Regards
Johannes Trebeß

@mrodfuentes
Copy link
Author

mrodfuentes commented Feb 24, 2017 via email

@nnixaa
Copy link
Collaborator

nnixaa commented Feb 27, 2017

@lexzhukov can we update the documentation?

@lexzhukov
Copy link
Contributor

@nnixaa yes, we can.

@lexzhukov
Copy link
Contributor

The documentation was updated.

@owis2sabry
Copy link

i have the same problem , and the solution above does not work for me , any help? @jtrebess

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants