Skip to content

Commit

Permalink
Add vercel inject function call in ngOnInit()
Browse files Browse the repository at this point in the history
  • Loading branch information
akozma89 committed Jan 3, 2024
1 parent 02d84ae commit aad1908
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { LoadMachinesAction } from './stores/machines/machines.actions';
import { LayoutComponent } from './components/layout/layout.component';
import { selectLoading } from '@stores/machines/machines.selectors';
import { NzSpinModule } from 'ng-zorro-antd/spin';
import { inject } from '@vercel/analytics';

@Component({
selector: 'app-root',
Expand All @@ -28,6 +29,7 @@ export class AppComponent implements OnInit {
constructor(private store: Store<AppStore>) {}

ngOnInit(): void {
inject();
this.store.dispatch(LoadMachinesAction());
}
}

0 comments on commit aad1908

Please sign in to comment.