Giter Club home page Giter Club logo

angular-crash-2021's People

Contributors

bradtraversy avatar devidw avatar santprakash128 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  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  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  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angular-crash-2021's Issues

GET http://localhost:5000/tasks net::ERR_CONNECTION_REFUSED

I have tried the tutorial the other day, and the json server was working. The CRUD functions also work and reflects on the web app. However, today when I re-opened the Angular application to refresh the lessons, I ran

ng serve

to run the application and I noticed that the tasks are empty on the webpage. When I checked the error messages on the browser console, I got the error message/s:

zone.js:2707 GET http://localhost:5000/tasks net::ERR_CONNECTION_REFUSED

and

ERROR: HttpErrorResponse {headers: HttpHeaders, status: 0, statusText: 'Unknown Error', url: 'http://localhost:5000/tasks', ok: false, …}
'error: ProgressEvent {isTrusted: true, lengthComputable: false, loaded: 0, total: 0, type: 'error', …} headers: HttpHeaders {normalizedNames: Map(0), lazyUpdate: null, headers: Map(0)} message: "Http failure response for http://localhost:5000/tasks: 0 Unknown Error" name: "HttpErrorResponse" ok: false status: 0 statusText: "Unknown Error" url: "http://localhost:5000/tasks" [[Prototype]]: HttpResponseBase constructor: class HttpErrorResponse [[Prototype]]: Object

Is this a problem regarding the json server? I've tried reinstalling them to the package but it still has the same error.

Bug:the add-task component won't show normally

Firstly, i clicked the 'Add' button to show add-task form.
image

Then, i click the 'About' link to the page about.I couldn't find the add-task form after i go back to the '/' path.
image

The *ngIf used in add-task component may used the default value set for variable 'showAddTask'(false).

I'm a newbie in angular, i want to know which way to solve it is the angular way.Thanks!

BTW, if we don't use unsubscribe observable in service, the subscribe will perform more than once unexpectedly after we switch the pages.

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.