<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.11</version> <!-- A versão mais atual que puder -->
<executions>
- Desinstalar o Karma, o Jasmine e todas as dependências
npm uninstall karma karma-chrome-launcher karma-coverage-istanbul-reporter karma-jasmine karma-jasmine-html-reporter @types/jasmine @types/jasminewd2 jasmine-core jasmine-spec-reporter
- Remover a seção de testes do arquivo
angular.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
import { NgModule } from '@angular/core'; | |
import { BrowserModule } from '@angular/platform-browser'; | |
import { AppComponent } from './app.component'; | |
import { ReactiveFormsModule, FormsModule } from '@angular/forms'; | |
@NgModule({ | |
imports: [ | |
BrowserModule | |
], |
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
<h2>Select Country</h2> | |
<select (change)="SetDropDownValue($event)"> | |
<option value="">Select a Country</option> | |
<option value="Brazil">Brazil</option> | |
<option value="Argentina">Argentina</option> | |
<option value="Uruguay">Uruguay</option> | |
</select> | |
<h2>You Have Selected</h2> |
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
<form [formGroup]="form"> | |
<input type="date" formControlName="date"/> | |
</form> |
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
<h2 class="title">Nosso Formulário</h2> | |
<form [formGroup]="form"> | |
<input formControlName="date" type="date"> | |
</form> |
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> | |
<label for="date-string">Regular string value</label> | |
<input [formControl]="dateStringControl" type="date" id="date-string" /> | |
</div> | |
<div> | |
<label for="date-object">Date object value with directive help</label> | |
<input [formControl]="dateObjectControl" type="date" id="date-object" /> | |
</div> |
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
<h1>{{ counter$ | async }}</h1> | |
<button (click)="increment()">Aumentar</button> | |
<button (click)="decrement()">Diminuir</button> | |
<button (click)="reset()">Reiniciar</button> |
É um conjunto adicional de recursos para o JavaScript. O recurso mais importante é a determinação de tipos estáticos.
É quando o desenvolvedor define qual será o tipo de valor que uma variável vai receber. Exemplo: