-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
agregar basic component, number y uncommon.
- Loading branch information
1 parent
b9a7bb0
commit a41f73b
Showing
14 changed files
with
132 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
import { NgModule } from '@angular/core'; | ||
|
||
import { ButtonModule } from 'primeng/button'; | ||
import { MenuModule } from 'primeng/menu'; | ||
import { CardModule } from 'primeng/card'; | ||
import { FieldsetModule } from 'primeng/fieldset'; | ||
import { MenubarModule } from 'primeng/menubar'; | ||
import { PanelModule } from 'primeng/panel'; | ||
|
||
@NgModule({ | ||
exports: [ | ||
ButtonModule, | ||
MenuModule, | ||
MenubarModule | ||
CardModule, | ||
FieldsetModule, | ||
MenubarModule, | ||
PanelModule | ||
], | ||
}) | ||
export class PrimeNgModule {} |
Empty file.
24 changes: 24 additions & 0 deletions
24
05-pipesApp/src/app/products/pages/basics-page/basics-page.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<p-panel [showHeader]="false"> | ||
<h1>Pipe Básicos</h1> | ||
<p> | ||
Pipes incluídos en Angular - Usualmente en el Common Module | ||
</p> | ||
</p-panel> | ||
|
||
<div class="p-grid"> | ||
<div class="p-col-4"> | ||
<p-card header="uppercase"> | ||
{{ nameLower | uppercase }} | ||
</p-card> | ||
</div> | ||
<div class="p-col-4"> | ||
<p-card header="lowercase"> | ||
{{ nameUpper | lowercase }} | ||
</p-card> | ||
</div> | ||
<div class="p-col-4"> | ||
<p-card header="titlecase"> | ||
{{ fullName | titlecase }} | ||
</p-card> | ||
</div> | ||
</div> |
13 changes: 13 additions & 0 deletions
13
05-pipesApp/src/app/products/pages/basics-page/basics-page.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-basics-page', | ||
templateUrl: './basics-page.component.html', | ||
styleUrl: './basics-page.component.css' | ||
}) | ||
export class BasicsPageComponent { | ||
|
||
public nameLower: string = 'diego'; | ||
public nameUpper: string = 'DIEGO'; | ||
public fullName: string = 'DiEgO'; | ||
} |
Empty file.
1 change: 1 addition & 0 deletions
1
05-pipesApp/src/app/products/pages/numbers-page/numbers-page.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<p>numbers-page works!</p> |
10 changes: 10 additions & 0 deletions
10
05-pipesApp/src/app/products/pages/numbers-page/numbers-page.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-numbers-page', | ||
templateUrl: './numbers-page.component.html', | ||
styleUrl: './numbers-page.component.css' | ||
}) | ||
export class NumbersPageComponent { | ||
|
||
} |
Empty file.
1 change: 1 addition & 0 deletions
1
05-pipesApp/src/app/products/pages/uncommon-page/uncommon-page.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<p>uncommon-page works!</p> |
10 changes: 10 additions & 0 deletions
10
05-pipesApp/src/app/products/pages/uncommon-page/uncommon-page.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-uncommon-page', | ||
templateUrl: './uncommon-page.component.html', | ||
styleUrl: './uncommon-page.component.css' | ||
}) | ||
export class UncommonPageComponent { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { RouterModule, Routes } from '@angular/router'; | ||
import { BasicsPageComponent } from './pages/basics-page/basics-page.component'; | ||
import { NumbersPageComponent } from './pages/numbers-page/numbers-page.component'; | ||
import { UncommonPageComponent } from './pages/uncommon-page/uncommon-page.component'; | ||
|
||
const routes: Routes = [ | ||
{ | ||
path: '', | ||
component: BasicsPageComponent | ||
}, | ||
{ | ||
path: 'numbers', | ||
component: NumbersPageComponent | ||
}, | ||
{ | ||
path: 'uncommon', | ||
component: UncommonPageComponent | ||
}, | ||
{ | ||
path: '**', | ||
redirectTo: '' | ||
} | ||
]; | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forChild(routes)], | ||
exports: [RouterModule] | ||
}) | ||
export class ProductsRoutingModule { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
|
||
import { ProductsRoutingModule } from './products-routing.module'; | ||
import { BasicsPageComponent } from './pages/basics-page/basics-page.component'; | ||
import { NumbersPageComponent } from './pages/numbers-page/numbers-page.component'; | ||
import { UncommonPageComponent } from './pages/uncommon-page/uncommon-page.component'; | ||
import { PrimeNgModule } from '../prime-ng/prime-ng.module'; | ||
|
||
|
||
@NgModule({ | ||
declarations: [ | ||
BasicsPageComponent, | ||
NumbersPageComponent, | ||
UncommonPageComponent | ||
], | ||
imports: [ | ||
CommonModule, | ||
ProductsRoutingModule, | ||
PrimeNgModule | ||
] | ||
}) | ||
export class ProductsModule { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters