This file contains hidden or 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
| "styles": [ | |
| "src/styles.scss", | |
| "node_modules/primeicons/primeicons.css", | |
| "node_modules/primeng/resources/themes/tailwind-light/theme.css", | |
| "node_modules/primeng/resources/primeng.min.css", | |
| "node_modules/primeflex/primeflex.css" | |
| ] |
This file contains hidden or 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
| https://angular.io/guide/testing | |
| https://semaphoreci.com/community/tutorials/testing-components-in-angular-2-with-jasmine |
This file contains hidden or 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
| ng add @angular/pwa | |
| check ngsw-config.json | |
| check manifest.json |
This file contains hidden or 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
| <div class="container"> | |
| <div class="row"> | |
| <div class="col-xs-12"> | |
| <h1>Animations</h1> | |
| <button class="btn btn-primary" (click)="onAnimate()">Animate!</button> | |
| <button class="btn btn-primary" (click)="onShrink()">Shrink!</button> | |
| <hr> | |
| <div | |
| style="width: 100px; height: 100px" | |
| [@divState]="state" |
This file contains hidden or 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
| import { NgModule } from '@angular/core'; | |
| import { Routes, RouterModule, PreloadAllModules } from '@angular/router'; | |
| const appRoutes: Routes = [ | |
| { path: '', redirectTo: '/recipes', pathMatch: 'full' }, | |
| { | |
| path: 'recipes', | |
| loadChildren: () => | |
| import('./recipes/recipes.module').then(m => m.RecipesModule) | |
| }, |
This file contains hidden or 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
| Split app modules in features modules and core module, don't import in app.module.ts feature modules, they have to be imported dynamiclly |
This file contains hidden or 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
| No es necesario exportar nada, sirve para mantener app.module.ts más limpio, solo cuando se necesite ya que la mejor forma es en cada servicio usar providedIn root por ejemplo |
This file contains hidden or 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
| Declaraciones de un mismo componente en varios módulos no está permitido, debe usarse SharedModule y revisar que no esté redeclarado en distintos sitios. Clase 328 del curso. |
This file contains hidden or 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
| Sirve para crear partes totalmente independientes en una aplicación, las cuales se encargan de indicar sus propias rutas, y las características usadas en ese módulo. Ejemplo abajo: | |
| Sección 22 curso |
This file contains hidden or 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
| <div class="backdrop" (click)="onClose()"></div> | |
| <div class="alert-box"> | |
| <p>{{ message }}</p> | |
| <div class="alert-box-actions"> | |
| <button class="btn btn-primary" (click)="onClose()">Close</button> | |
| </div> | |
| </div> |
NewerOlder