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 use angular 7, access "this.route.snapshot.data['page']" got undefined, help! #4

Closed
littleOStar opened this issue Nov 22, 2018 · 1 comment

Comments

@littleOStar
Copy link

i'm learning this website,

https://www.creativebloq.com/how-to/how-to-build-a-full-page-website-in-angular/3

@littleOStar
Copy link
Author

i dont know whats happing, then everything is fine.

i just do this.

  pages = new Map<string, Page>();

  constructor() {
    this.pages.set('home', new Page('Home', 'Welcome Home!', 'Some home content.', 'assets/bg00.jpg'));
    this.pages.set('about', new Page('About', 'About Us', 'Some content about us.', 'assets/bg01.jpg'));
    this.pages.set('contact', new Page('Contact', 'Contact Us', 'How to contact us..', 'assets/bg02.jpg'));
  }

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

No branches or pull requests

1 participant