Browse Source

adding home component

gauravAngular
Gaurav 4 years ago
parent
commit
4ee348ff6f
6 changed files with 16082 additions and 26 deletions
  1. 16065
      Angular-UrbanBazaar/package-lock.json
  2. 2
      Angular-UrbanBazaar/src/app/app.module.ts
  3. 0
      Angular-UrbanBazaar/src/app/components/home/home.component.css
  4. 1
      Angular-UrbanBazaar/src/app/components/home/home.component.html
  5. 25
      Angular-UrbanBazaar/src/app/components/home/home.component.spec.ts
  6. 15
      Angular-UrbanBazaar/src/app/components/home/home.component.ts

16065
Angular-UrbanBazaar/package-lock.json
File diff suppressed because it is too large
View File

2
Angular-UrbanBazaar/src/app/app.module.ts

@ -9,6 +9,7 @@ import { UserShowComponent } from './components/user-show/user-show.component';
import { UserAddComponent } from './components/user-add/user-add.component';
import { UserProfileDetailsComponent } from './components/user-profile-details/user-profile-details.component';
import { PageNavBarComponent } from './components/page-nav-bar/page-nav-bar.component';
import { HomeComponent } from './components/home/home.component';
@NgModule({
declarations: [
@ -17,6 +18,7 @@ import { PageNavBarComponent } from './components/page-nav-bar/page-nav-bar.comp
UserAddComponent,
UserProfileDetailsComponent,
PageNavBarComponent,
HomeComponent,
],
imports: [
BrowserModule,

0
Angular-UrbanBazaar/src/app/components/home/home.component.css

1
Angular-UrbanBazaar/src/app/components/home/home.component.html

@ -0,0 +1 @@
<p>home works!</p>

25
Angular-UrbanBazaar/src/app/components/home/home.component.spec.ts

@ -0,0 +1,25 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { HomeComponent } from './home.component';
describe('HomeComponent', () => {
let component: HomeComponent;
let fixture: ComponentFixture<HomeComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ HomeComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(HomeComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

15
Angular-UrbanBazaar/src/app/components/home/home.component.ts

@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.css']
})
export class HomeComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}
Loading…
Cancel
Save