235229 (13) [Avatar] Offline
In my learning app based on this book I'm adding products dynamically.

Since home.ts load products only once in constructor I can't see new products:

export default class HomeComponent {
  products: Observable<Product[]>;

  constructor(private productService: ProductService) {
    this.products = this.productService.getProducts();

I'm wandering how to refresh the product list every time I reenter home page?

Thank you.
Yakov Fain (208) [Avatar] Offline
Where are you adding new products?
What do you mean by reentering Home page?
235229 (13) [Avatar] Offline
I have different UI implemented in ExtJs where I can add product in database.
I have app open in two browsers:
- one has UI implemented with Angular 2
- second ExtJs UI

I'd like to see new products when I reenter home by clicking app logo in navbar.

235229 (13) [Avatar] Offline
Turns out that error was on server site.

Anyway is it possible to demonstrate how to insert refresh button on home page and reload products?

Thank you.
Yakov Fain (208) [Avatar] Offline
Then look at the code under the Search button in chapter 8 and implement similar functionality (emit the search event) under the navbar component.