Giter VIP home page Giter VIP logo

ngrx-workshop-ngconf2020's People

Contributors

mikeryandev 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ngrx-workshop-ngconf2020's Issues

1st bullet point on p. 143 of NgRxWorkshop.pdf

On p. 143 of NgRxWorkshop.pdf, a comma needs to be inserted immediately after "group" in the 1st bullet point:

Using sticky notes, as a group identify all of the events in the system

Recommendation for code on p. 167 of NgRxWorkshop.pdf

WRT the following code on p. 167 of NgRxWorkshop.pdf:

export const moviesReducer = createReducer(
  initialState,
  on(MoviesPageActions.enter, (state, action) => {
    return {
      ...state,
      activeMovieId: null
    };
  }),
  on(MoviesPageActions.clearSelectedMovie, (state, action) => {
    return {
      ...state,
      activeMovieId: null
    };
  }
));

The return code is identical in both on() functions:

    return {
      ...state,
      activeMovieId: null
    };

I recommend extracting that code to a method to adhere to the D.R.Y. principle.

Possible problem on p. 83 of NgRxWorkshop.pdf?

Hi,

In the Challenge on p. 83 of NgRxWorkshop.pdf, I read the following:

  1. Open books-page.actions.ts

At 7aee78a, however, you have us modify books-api.actions.ts, not books-page.actions.ts.

I believe (but wanted to check with you) that (whether) both files should read (be) the same.

I believe the correct fix is to replace "books-page.actions.ts" with "books-api.actions.ts" on p. 83 of NgRxWorkshop.pdf.

The enter function in books-page.actions.ts

WRT the following line in books-page.actions.ts:

export const enter = createAction("[Books Page] Enter");

Just a thought; I'm thinking that it would be more consistent to name it "enterBook" since the other functions include "Book" at the end of their name (selectBook, clearSelectedBook, createBook, updateBook and deleteBook).

Cannot find correct code for challenge 3 of the workshop

No issue, guys, sorry.

Not sure what I was looking at but the code at time point 24:42 for Day 2 is just fine. Could have sworn the code for updateBook in the on() method was quite different.

This is great hands-on and really clears up any questions a student might have learning NgRx. Well worth the price of admission, guys. Nice job.

"Add Book" in lieu of "Create Book" in book-detail.component.html?

While working on the first exercise, it occurred to me that -- although I know we're creating a record under the covers -- it might be a little more user-friendly to display "Add Book" in lieu of "Create Book" in the following line of book-detail.component.html:

<ng-template #prompt>Create Book</ng-template>

(Not sure if this would necessitate replacing other occurrences of "Create"/"create" with "Add"/"add" throughout the code.)

Bullet point needs to be removed from page 131 of NgRxWorkshop.pdf

Hi, Mike.

Just before 01:29:18 of Day 1 of the Learn NgRx from the creators of NgRx Workshop, you mentioned to Brandon that the last bullet point needs to be removed.

In response, here's a reminder to remove the last bullet point from page 131 of NgRxWorkshop.pdf, viz.:

Strongly typed using classes and enums

(BTW, it appears that this was already done on p. 324 of NgRxWorkshop.pdf.)

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.