This project was generated with Angular CLI version 10.2.0.
Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.
Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.
Run ng test to execute the unit tests via Karma.
Run ng e2e to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.
- Crear una aplicación con el nombre
todo-list:- estilos scss
- sin tests
- con routing
- Crear el módulo app.material
con el modificador--flat` - Crear una carpeta
componentscon los siguientes componentes:
headerfooteritemerror
-
Crear una carpeta
displaydentro de components con dos componentes:listcard
-
Crear un componente
messagedentro del componenteerror. (Cambiar el selector aapp-error-messagedentro del componente) -
Crear un servicio
services/firebase.
Incluir los siguientes componentes en la vista:
- <app-header></app-header>
- <app-item></app-item>
- <app-list></app-list>
- <app-error><app-error-message></app-error-message></app-error>
- <app-footer></app-footer>
- Contendrá un botón con un binding de evento
clickal métodotoogleFooter(), que mostrará u ocultará el footer. toogleFooter(): "emitirá" un booleanshowFooter
Crear la propiedad footerText= "soy un texto" dentro de las etiquetas de app-footer en el app.component.html
id:{orderId: 1,
name: 'todolist', description: 'This is todo list app'}setDeletedItems(deletedItem){}
addItems(item) { }
get ttlItems() { return this.totalItems; }
Que tenga los siguientes elementos:
- Un control item con un label "Add item", required
- Un control description con un label "Add description", required
- Botón
submitasociado a método aonSubmit()