+@if (isHistoryVisible) {
+
State History
{{ stateHistory | json }}
-
\ No newline at end of file
+
+}
diff --git a/samples/angular-simple-store/src/app/app.component.ts b/samples/angular-simple-store/src/app/app.component.ts
index 359477ab..3a537846 100644
--- a/samples/angular-simple-store/src/app/app.component.ts
+++ b/samples/angular-simple-store/src/app/app.component.ts
@@ -1,13 +1,15 @@
import { Component, OnInit, OnDestroy } from '@angular/core';
+import { CommonModule } from '@angular/common';
import { CustomersService, StoreState } from './core/store/customers.service';
import { Customer } from './core/store/customer';
-import { Observable, Subscription } from 'rxjs';
+import { Subscription } from 'rxjs';
import { StateHistory } from '@codewithdan/observable-store';
@Component({
selector: 'app-root',
+ imports: [CommonModule],
templateUrl: './app.component.html',
- styleUrls: ['./app.component.css']
+ styleUrl: './app.component.css'
})
export class AppComponent implements OnInit, OnDestroy {
customers: Customer[] | null = [];
@@ -18,34 +20,17 @@ export class AppComponent implements OnInit, OnDestroy {
constructor(private customersService: CustomersService) { }
ngOnInit() {
- // Use Observable