Giter Club home page Giter Club logo

introduction-to-angular's Introduction

Introduction to Angular Codelab

In this codelab, you'll build a housing app with Angular. This is the completed app and features the ability to view home listings based on user search, and view details of a housing location.

You'll build everything with Angular using Angular's powerful tooling and great browser integration.

Here's a preview of the application:

Completed application - one column search results, second column search details

The step-by-step guide can be found at https://codelabs.developers.google.com/introduction-to-angular

introduction-to-angular's People

Contributors

marktechson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

introduction-to-angular's Issues

wrong file name

Step 6: filter search results
4. In housing-location.component.html, replace locationList with results in the ngFor:
SHOULD REPLACE
housing-list.component.html

Wrong method name

In part 7 (Display the details) step 3 it is written "....add a new method called selectLocation..." I believe it should be selectHousingLocation

Also in step 8 it is written "Add a new method called updateSelection..." I believe it should be updateSelectedLocation

Page 6, section 4

I believe housing-location.component.html should be replaced with housing-list.component.html

inconsitent style (typo)

In step 5 there's a space missing at the beginning of the import of HousingLocation:

import { Component, OnInit, Input } from '@angular/core';
import {HousingLocation } from '../housing-location';
       ^^^

Missing article element in template.

On the page https://codelabs.developers.google.com/introduction-to-angular#4, the instructions mention

  1. In housing-list.component.html, update the article element in the template to use *ngFor so that you can display the array entries in the browser:

But, so far, no <article> element has been defined anywhere. It seems it is missing in step four of https://codelabs.developers.google.com/introduction-to-angular#2

  1. In your code editor, navigate to housing-list.component.html, remove the existing code, and replace it with:

<label for="location-search">Search for a new place</label>
<input id="location-search" placeholder="Ex: Chicago"><button>Search</button>

superfluous (wrong!) method in code example

In step 8 of part 7 is a wrong piece of code.
It looks like this:

updateSelectedLocation(location: HousingLocation) { } searchHousingLocations() {}

But it should be this:

updateSelectedLocation(location: HousingLocation) { }

This is tightly connected to (but not the same as) #12

Please provide updated version

I tried node 16, 18, 20 and run always into several update / incompatibilty problems with angular cli and other dependenies. Can't get it to run within a reasonable time range.

Please update tutorial so it is running with current node and angular cli versions!

B.t.w. i run on arm Mac, so this might contribute to the problems...

What worked:

  • Using node 16 latest stable
  • Install specific version: npm install -g @angular/[email protected] instead of npm install -g @angular/cli

Fix for This version of CLI is only compatible with Angular versions ^17.0.0, but Angular version 13.2.6 was found instead.

Fix for This version of CLI is only compatible with Angular versions ^17.0.0, but Angular version 13.2.6 was found instead.
OR similar version issues.

Once you have cloned the repository to your local directory of angular\introduction-to-angular you will need to run the following installs to support the code that was originally created in Angular 13.2.6

From with the directory 'introduction-to-angular' execute the following commands separately:

npm install @angular/[email protected] @angular/[email protected] @angular-devkit/build-angular

Do not be tempted to update any of the audited packages as this will update your need 13.2.6 components to whatever more recent version of the Angular CLI you are using.

I hope this helps someone : )

method name 'updateSelection' in description is wrong (typo)

In step 8 of part 7 is a typo:

  1. Add a new method called updateSelection with a parameter called location and with a type of HousingLocation.
updateSelectedLocation(location: HousingLocation) { } searchHousingLocations() {}

updateSelection in should be updateSelectedLocation.
The method in the code is correct (although the code isn't completely correct --> #13), the description before isn't.

component name mistake in codelabs?

In the "polish the templates" section, step no.4 mentions updating the code in the housing-location.component.html. I believe this should be housing-list.component.html

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.