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

🚚 Configure App Routing #40

Closed
IanOdhiambo9 opened this issue Feb 6, 2023 · 4 comments · Fixed by #214
Closed

🚚 Configure App Routing #40

IanOdhiambo9 opened this issue Feb 6, 2023 · 4 comments · Fixed by #214
Labels
3 points enhancement New feature or request help wanted Extra attention is needed

Comments

@IanOdhiambo9
Copy link
Collaborator

IanOdhiambo9 commented Feb 6, 2023

Configure App Routing


Note: This issue is dependent on #1, please complete this issue first.

Quick links: Summary | Description | Technical-Analysis | Acceptance-Criteria


Summary

As a user I want routes to navigate to various parts of the website

Description

The website navigation is managed on apps/elewa-group-website/src/app

On the path above create a file named app.routing.ts

Paste the code below on that file

import { NgModule } from '@angular/core';
import { RouterModule, Route }  from '@angular/router';

export const ELEWA_GROUP_WEBSITE_ROUTES: Route[] = [

  // App Entry-Point

  { path: '', redirectTo: `home`, pathMatch: 'full' },
  {  path: 'home', redirectTo: 'home/en'  },

];

@NgModule({
  imports: [
    RouterModule.forRoot(
      ELEWA_GROUP_WEBSITE_ROUTES,
      {
        scrollPositionRestoration: 'enabled',
        enableTracing: true, 
        onSameUrlNavigation: 'reload'
      }
    )
  ],
  exports: [
    RouterModule
  ]
})
export class AppRoutingModule { }

Your assignment is to implement the routing for the various pages/modules of the website on the file above.

Technical Analysis

This feature will be implemented on apps/elewa-group-website/src/app

Acceptance Criteria

  1. All the navigation routes are properly implemented and working.
@IanOdhiambo9 IanOdhiambo9 added enhancement New feature or request help wanted Extra attention is needed 3 points labels Feb 6, 2023
@IanOdhiambo9 IanOdhiambo9 added this to the Group website v1 milestone Feb 6, 2023
@adamswonder
Copy link
Contributor

Working on this issue with @JamesMGithire

@CharlesMuvaka
Copy link

Done the home and default route('')

@mbuimbogo
Copy link
Contributor

Working on this with Danstan

@IanOdhiambo9
Copy link
Collaborator Author

This is on hold until further notice..

JamesMGithire added a commit to adamswonder/elewa-group that referenced this issue Feb 16, 2023
JamesMGithire added a commit to adamswonder/elewa-group that referenced this issue Feb 16, 2023
IanOdhiambo9 added a commit that referenced this issue Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 points enhancement New feature or request help wanted Extra attention is needed
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants