Skip to content

Commit

Permalink
added widgets component and routing
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorromerodev committed Sep 6, 2022
1 parent a33c421 commit 55a07d4
Show file tree
Hide file tree
Showing 14 changed files with 135 additions and 2 deletions.
20 changes: 18 additions & 2 deletions apps/dashboard/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,26 @@ import { NxWelcomeComponent } from './nx-welcome.component';
import { HttpClientModule } from '@angular/common/http';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { StoreModule } from '@ngrx/store';
import { RoutingModule } from './routing.module';
import { WidgetsComponent } from './widgets/widgets.component';
import { WidgetsListComponent } from './widgets/widgets-list/widgets-list.component';
import { WidgetDetailsComponent } from './widgets/widget-details/widget-details.component';

@NgModule({
declarations: [AppComponent, NxWelcomeComponent],
imports: [BrowserModule, HttpClientModule, BrowserAnimationsModule, StoreModule.forRoot({}, {})],
declarations: [
AppComponent,
NxWelcomeComponent,
WidgetsComponent,
WidgetsListComponent,
WidgetDetailsComponent,
],
imports: [
BrowserModule,
HttpClientModule,
BrowserAnimationsModule,
StoreModule.forRoot({}, {}),
RoutingModule,
],
providers: [],
bootstrap: [AppComponent],
})
Expand Down
12 changes: 12 additions & 0 deletions apps/dashboard/src/app/routing.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';



@NgModule({
declarations: [],
imports: [
CommonModule
]
})
export class RoutingModule { }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>widget-details works!</p>
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { WidgetDetailsComponent } from './widget-details.component';

describe('WidgetDetailsComponent', () => {
let component: WidgetDetailsComponent;
let fixture: ComponentFixture<WidgetDetailsComponent>;

beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [WidgetDetailsComponent],
}).compileComponents();

fixture = TestBed.createComponent(WidgetDetailsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'hr-webdev-widget-details',
templateUrl: './widget-details.component.html',
styleUrls: ['./widget-details.component.scss'],
})
export class WidgetDetailsComponent implements OnInit {
constructor() {}

ngOnInit(): void {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>widgets-list works!</p>
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { WidgetsListComponent } from './widgets-list.component';

describe('WidgetsListComponent', () => {
let component: WidgetsListComponent;
let fixture: ComponentFixture<WidgetsListComponent>;

beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [WidgetsListComponent],
}).compileComponents();

fixture = TestBed.createComponent(WidgetsListComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'hr-webdev-widgets-list',
templateUrl: './widgets-list.component.html',
styleUrls: ['./widgets-list.component.scss'],
})
export class WidgetsListComponent implements OnInit {
constructor() {}

ngOnInit(): void {}
}
1 change: 1 addition & 0 deletions apps/dashboard/src/app/widgets/widgets.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>widgets works!</p>
Empty file.
22 changes: 22 additions & 0 deletions apps/dashboard/src/app/widgets/widgets.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { WidgetsComponent } from './widgets.component';

describe('WidgetsComponent', () => {
let component: WidgetsComponent;
let fixture: ComponentFixture<WidgetsComponent>;

beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [WidgetsComponent],
}).compileComponents();

fixture = TestBed.createComponent(WidgetsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
12 changes: 12 additions & 0 deletions apps/dashboard/src/app/widgets/widgets.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'hr-webdev-widgets',
templateUrl: './widgets.component.html',
styleUrls: ['./widgets.component.scss'],
})
export class WidgetsComponent implements OnInit {
constructor() {}

ngOnInit(): void {}
}

0 comments on commit 55a07d4

Please sign in to comment.