Giter Site home page Giter Site logo

rxheroes's Introduction

RX Heroes

The Angular 2 Tour of Heroes Tutorial app rewritten with @ngrx/store

See my post about this for the full story.

Update - 09/25/2016

This repo has been updated to work with the final release of Angular 2 final. It's not perfect, and I would suggest that you NOT consider this as an example of best practices, but it will give you an idea of how these pieces fit together. Here's a quick rundown of what changed:

  • Updated to use final 2.0.0 version of Angular 2
  • Removed @ngrx/router and switched to using new @angular/router
  • Updated code to use NgModule
    • Not all code has been modularized, and to make this update more simple, I moved all components from hero-detail into the heroes module.
  • Updated @ngrx/effects to the lastest beta build.
    • Effects code had to be changed to work with breaking changes in beta.

Again, this was done quickly so that I could demonstrate it working in the final release. There's probably a LOT of wrongness in here.

rxheroes's People

Contributors

bodiddlie avatar bryant1410 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

rxheroes's Issues

Spelling on Readme

Angular is spelled wrong on readme page "The Angualr 2 Tour of Heroes Tutorial app rewritten with @ngrx/store"

Error handling

Thank you for this code and your article. Any thoughts on how you would best display error messages arising from the http calls in the service?

Why json-server

Thanks for putting up this example using ngrx. I am trying to pick a few concepts for here and figured that you are using json-server instead of angular-in-memory-web-api. Is there a specific reason for choosing this over the other? Would be very helpful if you could provide some thoughts.

Error: on running the app

when I am trying to run the app using npm start, it's throwing following error:

webpack: Compiled successfully. [1] [default] Checking started in a separate process... [1] ./rxheroes/node_modules/typescript/lib/typescript.js:3329 [1] throw new Error("Debug Failure. False expression: " + (message || "") + verboseDebugString); [1] ^ [1] [1] Error: Debug Failure. False expression: File has unknown extension. [1] at Object.assert (./rxheroes/node_modules/typescript/lib/typescript.js:3329:23) [1] at Object.fail (./rxheroes/node_modules/typescript/lib/typescript.js:3334:19) [1] at Object.extensionFromPath (./rxheroes/node_modules/typescript/lib/typescript.js:3476:15) [1] at ./rxheroes/node_modules/typescript/lib/typescript.js:66996:46 [1] at Array.map (native) [1] at resolveModuleNamesWorker (./rxheroes/node_modules/typescript/lib/typescript.js:66990:141) [1] at resolveModuleNamesReusingOldState (./rxheroes/node_modules/typescript/lib/typescript.js:67117:24) [1] at processImportedModules (./rxheroes/node_modules/typescript/lib/typescript.js:68027:35) [1] at findSourceFile (./rxheroes/node_modules/typescript/lib/typescript.js:67937:17) [1] at processImportedModules (./rxheroes/node_modules/typescript/lib/typescript.js:68056:25)

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.