bitovi / academy

Everything we know about frontend, backend, UX, and Devops consulting and management.
https://www.bitovi.com/academy/
14 stars 3 forks source link

Angular: Rough Notes #27

Closed justinbmeyer closed 5 years ago

justinbmeyer commented 5 years ago

Meta

Angular

Why Angular

Building our first app



justinbmeyer commented 5 years ago

Creating Components






justinbmeyer commented 5 years ago

Adding Routing


Wednesday



justinbmeyer commented 5 years ago

Creating Navigation




Wed, March 27

justinbmeyer commented 5 years ago

Writing a Restaurant Service



Wednesday



Wed March 27


Thursday, March 28th

justinbmeyer commented 5 years ago

Use Restaurant API data



Thur March 28th

Currently this page:

I see two main opportunities for improvement:

I see two solutions:

Single Exercise - (easy for us) - Give people the final .html. Explain how the .restaurants property should look ({value, isPending}). Give people the Data<T> interface. Give people the final .test. Let them figure everything else out.

Double Exercise - (harder for us) - Split into two exercises. The first works with the existing .html file. The developers will have to simply write this.restaurants = res.data. The second one has them changing restaurants to the new format ({value, isPending}) and rewriting the .html file. I'd give people a functional test that tests that the data loads from the service AND that a pending state is shown. The first exercise will only make the first test pass, the second one will make the second test pass.

justinbmeyer commented 5 years ago

Creating city & state options for filtering restaurants

I just added some dummy data.

I also kept this code:

this.restaurantService.getRestaurants().subscribe((res: Config) => {
      this.restaurants.value = res.data;
      this.restaurants.isPending = false;
    });

Thurs, March 28th

justinbmeyer commented 5 years ago

Listening to Form Value Changes


Thurs, March 28th

justinbmeyer commented 5 years ago

Filtering Cities and Restaurants

I updated this so it works. I kept it showing restaurants the whole time. When cities restaurants are changed to require filtering, I made it so it shows those for "IL" / "Chicago"



_Wednesday


justinbmeyer commented 5 years ago

Nested Restaurant Routes

At the Creating a route for restaurant/{{restaurant-slug}} header, the app wasn't working because getUrl wasn't implemented (but was in the view). I added this earlier. However, restaurant.images.banner and other restaurant properties are used in the view. This prevents seeing something from working.

I suggest making a mock restaurant when first creating the restaurant. Or remove using this data from the initial detail.component.html file. Ideally the apps should work at the end of each section.



justinbmeyer commented 5 years ago

Building the order form




justinbmeyer commented 5 years ago

Order History Component

justinbmeyer commented 5 years ago

Real Time Connection

justinbmeyer commented 5 years ago

Writing Unit Tests

justinbmeyer commented 5 years ago

Order Service

tehfedaykin commented 5 years ago

Angular Training Kansas City Retro

In 4 hours was able to get through city & state options at an aggressive pace(~10 min per exercise). Pace was too accelerated for most attendees. Attendees with more backend experience struggled with front-end form parts of the content, like dropdowns.

No issues with any of the code samples or spec files, except for one spec file that was collapsed and didn't show a needed import at the top.

2nd half of content was missing a few code examples before requiring knowledge in an exercise.

12-16 hours would be more appropriate for entirety of Angular content.

Angular Training moving Forward: