Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 2.29 KB

NESTED_NAV_ELEMENT.md

File metadata and controls

39 lines (32 loc) · 2.29 KB

A Page With Nested Routes

This template creates a page with 2 tabs (sub components/pages) accessible via nested routes The following (client-side) artifacts are generated/modified:

1. Angular application (assuming your page is called 'hello-world'):
  • src/main/webapp/app/app.module.ts (this gets modified)
  • src/main/webapp/app/hello-world/navbar.component.html (this gets modified)
  • src/main/webapp/i18n/{lang}/global.json (these get modified)
  • src/main/webapp/i18n/{lang}/hello-world.json (resource is created for i18n)
  • src/main/webapp/i18n/{lang}/page-one.json (resource is created for i18n)
  • src/main/webapp/i18n/{lang}/page-two.json (resource is created for i18n)
  • src/main/webapp/app/hello-world/hello-world.component.html
  • src/main/webapp/app/hello-world/hello-world.component.[s]css (css/scss is created based on your jhipster config, i.e. useSass in your .yo-rc.json)
  • src/main/webapp/app/hello-world/hello-world.component.ts
  • src/main/webapp/app/hello-world/hello-world.module.ts
  • src/main/webapp/app/hello-world/hello-world.route.ts
  • src/test/javascript/spec/app/hello-world/hello-world.component.spec.ts
  • src/main/webapp/app/hello-world/page-one/page-one.component.html
  • src/main/webapp/app/hello-world/page-one/page-one.component.[s]css (css/scss is created based on your jhipster config, i.e. useSass in your .yo-rc.json)
  • src/main/webapp/app/hello-world/page-one/page-one.component.ts
  • src/main/webapp/app/hello-world/page-one/page-one.route.ts
  • src/test/javascript/spec/app/hello-world/page-one/page-one.component.spec.ts
  • src/main/webapp/app/hello-world/page-two/page-two.component.html
  • src/main/webapp/app/hello-world/page-two/page-two.component.[s]css (css/scss is created based on your jhipster config, i.e. useSass in your .yo-rc.json)
  • src/main/webapp/app/hello-world/page-two/page-two.component.ts
  • src/main/webapp/app/hello-world/page-two/page-two.route.ts
  • src/test/javascript/spec/app/hello-world/page-two/page-two.component.spec.ts
2. React:
  • Not supported currently

#💚 this module? Donate