ACTIVITY 7: Angular Basic Routing

  1. Create and Name your GitHub repository AngularBasicRouting

    No description available.

    1. "Create a folder for your Angular project and name the folder 'activity-angular-basic-routing'."

      No description available.

    2. Open your command prompt (CMD) and navigate to the top level of your project folder, then type "ng new Angular-Basic-Routing" to create a new Angular project.

      No description available.

    3. Use the command "ng serve" to start a development server and run your Angular application locally.

      No description available.

  1. Next, open your Angular project in your preferred editor, such as Visual Studio Code. Create a folder named "components" within your project directory to organize your Angular components.

    No description available.

  2. Within your newly created "components" folder, use the Angular CLI to generate four components: "login", "signup", "homepage", and "landingpage".

    No description available.

    No description available.

  3. Create a new file named app.module.ts within your Angular project's root directory. and Open your app.module.ts file and ensure it includes the necessary imports for routing, form handling, animations, and your newly created components, following the structure provided in the example.

No description available.

No description available.

  1. To streamline the All ComponentsAppComponent, remove the standalone: true flag and the imports: [] array from its definition, ensuring that the HomepageComponent, loginComponent, signupComponent, and landingpageComponent are properly integrated within the application's structure.

  2. To ensure the application starts correctly, the main.ts file needs to bootstrap the AppModule. This file serves as the entry point for your Angular application.

    No description available.

  3. The app.component.html file now features navigation links to the Homepage, Loginpage, Signuppage, and LandingPage, allowing users to easily access different sections of the application.

    No description available.

  4. The output displays navigation links to the Homepage, Loginpage, Signuppage, and LandingPage, providing users with easy access to various sections of the application.

  5. To see the status of your Git repository at the top of your Angular app folder, open your command prompt or terminal and type git status.

    No description available.

  6. If you have unstaged changes in your Angular app folder, you can add them to the staging area using the command git add .. This command will add all tracked files with changes to the staging area, preparing them for committing.

    No description available.

  7. After adding your changes with git add ., you can use git status to view the current status of your Git repository and see which files are staged for your next commit.

    No description available.

  8. To create your first commit with the staged changes and a descriptive message, you can use the command git commit -m "first commit". This will create a snapshot of your project's current state and associate it with the message "first commit".

    No description available.

  9. To rename your current branch to "main", you can use the command git branch -M main. This command will update the name of your current branch to "main", making it the default branch for your repository.

  10. No description available.

    To connect your local Git repository to a remote repository, you can use the command git remote add origin <remote_repository_URL>. This command will establish a connection between your local repository and the remote repository, allowing you to push and pull changes.

    No description available.

  11. To push your local changes to the remote repository and set the upstream branch for future pushes, you can use the command git push -u origin main. This command will push the changes from your local "main" branch to the "main" branch on the remote repository and configure the remote branch as the upstream for your local branch.

    No description available.

    Here is the link to my GitHub repository:

    https://github.com/jerome09232/AngularBasicRouting.git