Skip to content

Commit

Permalink
Creando la estructura de nuestro proyecto
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJonaCode committed Sep 24, 2020
1 parent b29cce6 commit ab88618
Show file tree
Hide file tree
Showing 8 changed files with 68 additions and 4 deletions.
10 changes: 7 additions & 3 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@
}
}
}
}},
"defaultProject": "spa"
}
}
},
"defaultProject": "spa",
"cli": {
"analytics": false
}
}
6 changes: 5 additions & 1 deletion src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';
import { NavbarComponent } from './components/shared/navbar/navbar.component';
import { HomeComponent } from './components/home/home.component';

@NgModule({
declarations: [
AppComponent
AppComponent,
NavbarComponent,
HomeComponent
],
imports: [
BrowserModule
Expand Down
Empty file.
1 change: 1 addition & 0 deletions src/app/components/home/home.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>home works!</p>
25 changes: 25 additions & 0 deletions src/app/components/home/home.component.spec.ts
Original file line number Diff line number Diff line change
@@ -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 changes: 15 additions & 0 deletions src/app/components/home/home.component.ts
Original file line number Diff line number Diff line change
@@ -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 {
}

}
1 change: 1 addition & 0 deletions src/app/components/shared/navbar/navbar.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>navbar works!</p>
14 changes: 14 additions & 0 deletions src/app/components/shared/navbar/navbar.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-navbar',
templateUrl: './navbar.component.html'
})
export class NavbarComponent implements OnInit {

constructor() { }

ngOnInit(): void {
}

}

0 comments on commit ab88618

Please sign in to comment.