-
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.
- Loading branch information
Showing
10 changed files
with
217 additions
and
11 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
49 changes: 43 additions & 6 deletions
49
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 |
---|---|---|
@@ -1,24 +1,61 @@ | ||
<p-panel [showHeader]="false"> | ||
<h1>Pipe Básicos</h1> | ||
<p-panel header="Pipes Básicos" class="p-1"> | ||
<p> | ||
Pipes incluídos en Angular - Usualmente en el Common Module | ||
</p> | ||
</p-panel> | ||
|
||
<div class="p-grid"> | ||
<div class="p-col-4"> | ||
<div class="grid"> | ||
<div class="col-12 md:col-4"> | ||
<p-card header="uppercase"> | ||
{{ nameLower | uppercase }} | ||
</p-card> | ||
</div> | ||
<div class="p-col-4"> | ||
<div class="col-12 md:col-4"> | ||
<p-card header="lowercase"> | ||
{{ nameUpper | lowercase }} | ||
</p-card> | ||
</div> | ||
<div class="p-col-4"> | ||
<div class="col-12 md:col-4"> | ||
<p-card header="titlecase"> | ||
{{ fullName | titlecase }} | ||
</p-card> | ||
</div> | ||
<div class="col-12 md:col-6"> | ||
<p-card header="date"> | ||
<ol> | ||
<li>fecha | date</li> | ||
<li>fecha | date:'short'</li> | ||
<li>fecha | date:'long'</li> | ||
<li>fecha | date:'MMMM'</li> | ||
<li>fecha | date:'MMMM dd, yyyy'</li> | ||
</ol> | ||
<hr> | ||
<ol> | ||
<li>fecha | date:'long':'GMT-3'</li> | ||
<li>fecha | date:'long':'GMT-6'</li> | ||
<li>fecha | date:'long':'':'es-AR'</li> | ||
<li>fecha | date:'long':'':'en-US'</li> | ||
<li>fecha | date:'long':'':'fr-CA'</li> | ||
</ol> | ||
</p-card> | ||
</div> | ||
<div class="col-12 md:col-6"> | ||
<p-card header="date"> | ||
<ol> | ||
<li>{{ customDate | date }}</li> | ||
<li>{{ customDate | date:'short' }}</li> | ||
<li>{{ customDate | date:'long' }}</li> | ||
<li>{{ customDate | date:'MMMM' }}</li> | ||
<li>{{ customDate | date:'MMMM dd, yyyy' }}</li> | ||
</ol> | ||
<hr> | ||
<ol> | ||
<li>{{ customDate | date:'long':'GMT-3' }}</li> | ||
<li>{{ customDate | date:'long':'GMT-6' }}</li> | ||
<li>{{ customDate | date:'long':'':'es-AR' }}</li> | ||
<li>{{ customDate | date:'long':'':'en-US' }}</li> | ||
<li>{{ customDate | date:'long':'':'fr-CA' }}</li> | ||
</ol> | ||
</p-card> | ||
</div> | ||
</div> |
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
24 changes: 23 additions & 1 deletion
24
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 |
---|---|---|
@@ -1 +1,23 @@ | ||
<p>numbers-page works!</p> | ||
<p-panel header="Pipes Numéricos" class="p-1"> | ||
<p> | ||
Pipes incluídos en Angular - Usualmente en el Common Module | ||
</p> | ||
</p-panel> | ||
|
||
<div class="grid"> | ||
<div class="col-12 md:col-4"> | ||
<p-card header="Ventas Netas" subheader="del presente año"> | ||
{{ (totalSells + 54654) | number:'1.2-2' }} | ||
</p-card> | ||
</div> | ||
<div class="col-12 md:col-4"> | ||
<p-card header="Ventas Brutas" subheader="del presente año"> | ||
{{ (totalSells + 54654) | currency:'ARS':'symbol-narrow':'1.4-4' }} | ||
</p-card> | ||
</div> | ||
<div class="col-12 md:col-4"> | ||
<p-card header="Ganancia Porcentual" subheader="del presente año"> | ||
{{ percent | percent:'1.2-2' }} | ||
</p-card> | ||
</div> | ||
</div> |
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
75 changes: 74 additions & 1 deletion
75
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 |
---|---|---|
@@ -1 +1,74 @@ | ||
<p>uncommon-page works!</p> | ||
<p-panel header="Pipes Básicos" class="p-1"> | ||
<p> | ||
Pipes incluídos en Angular - Usualmente en el Common Module | ||
</p> | ||
</p-panel> | ||
|
||
<div class="grid"> | ||
<div class="col-12 md:col-6"> | ||
<p-fieldset legend="i18nSelect Pipe" [toggleable]="true"> | ||
|
||
<p> | ||
Saudos {{ name }} es un placer {{ gender | i18nSelect:invitationMap }} | ||
a nuestro evento | ||
</p> | ||
|
||
<p-button (click)="changeClient()" label="Cambiar Persona"></p-button> | ||
</p-fieldset> | ||
</div> | ||
<div class="col-12 md:col-6"> | ||
<p-fieldset legend="i18nPlural Pipe" [toggleable]="true"> | ||
<p> | ||
Actualmente {{ customers.length | i18nPlural:customersMap }} | ||
</p> | ||
<p-button (click)="removeCustomer()" label="Remover Cliente"></p-button> | ||
</p-fieldset> | ||
</div> | ||
<div class="col-12 md:col-6"> | ||
<p-fieldset legend="Slice Pipe" [toggleable]="true"> | ||
<b>Original</b> | ||
<pre>{{ customers }}</pre> | ||
|
||
<b>slice:0:2</b> | ||
<pre>{{ customers | slice:0:2 }}</pre> | ||
|
||
<b>slice:1:2</b> | ||
<pre>{{ customers | slice:1:2 }}</pre> | ||
|
||
<b>slice:1:3</b> | ||
<pre>{{ customers | slice:1:3 }}</pre> | ||
|
||
<b>slice:3:4</b> | ||
<pre>{{ customers | slice:3:4 }}</pre> | ||
|
||
<b>slice:0:-3</b> | ||
<pre>{{ customers | slice:0:-3 }}</pre> | ||
|
||
|
||
</p-fieldset> | ||
</div> | ||
<div class="col-12 md:col-6"> | ||
<p-fieldset legend="Json Pipe" [toggleable]="true"> | ||
<pre>{{ person | json }}</pre> | ||
</p-fieldset> | ||
</div> | ||
<div class="col-12 md:col-6"> | ||
<p-fieldset legend="KeyValue Pipe" [toggleable]="true"> | ||
|
||
<ul> | ||
<li *ngFor="let item of person | keyvalue"> | ||
<b>{{ item.key }}:</b> {{ item.value }} | ||
</li> | ||
</ul> | ||
</p-fieldset> | ||
</div> | ||
<div class="col-12 md:col-6"> | ||
<p-fieldset legend="Async Pipe" [toggleable]="true"> | ||
<pre *ngIf="!(myObservableTimer | async)">Resolviendo observable</pre> | ||
<pre>{{ myObservableTimer | async }}</pre> | ||
|
||
<pre *ngIf="!(promiseValue | async)">Resolviendo promesa</pre> | ||
<pre>{{ promiseValue | async }}</pre> | ||
</p-fieldset> | ||
</div> | ||
</div> |
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