Skip to content

Instantly share code, notes, and snippets.

View Tecayehuatl's full-sized avatar
🌟
One task at the time...

Enrique Delgado Tecayehuatl Tecayehuatl

🌟
One task at the time...
View GitHub Profile
import { Component } from '@angular/core';
import { Store } from '@ngrx/store';
import { IAppState } from './store/app.interface';
import { login } from './store/actions/app.actions';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
})
export class AppComponent {
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { StoreModule } from '@ngrx/store';
import { reducers, metaReducers } from './store';
@NgModule({
export interface IApp {
username: string;
password: string;
authenticationMessage: string;
}
export interface IAppState {
AppState: IApp;
}