-
Notifications
You must be signed in to change notification settings - Fork 37.6k
Closed
Labels
*duplicateIssue identified as a duplicate of another issue(s)Issue identified as a duplicate of another issue(s)
Description
Issue Type: Bug
- contador.component.ts
import { Component} from "@angular/core";
@component({
selector: 'app-contador',
template: '
<h1>{{ titulo }}</h1>
<h3>La base es: <strong> {{ base }} </strong></h3>
<button (click)="acumular( base )"> + {{ base }}</button>
<span> {{ numero }}</span>
<button (click)="acumular( -base )"> - {{ base }}</button>
'
})
export class ContadorComponent{
titulo: string = 'Contador App';
numero: number = 10;
base: number = 5;
acumular( valor: number ){
this.numero += valor;
}
}
- app.component.html
-
app.module.ts
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { ContadorComponent } from './contador.component';
@NgModule({
declarations: [
AppComponent,
ContadorComponent
],
imports: [
BrowserModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
VS Code version: Code 1.60.0 (e7d7e9a, 2021-09-01T10:41:52.311Z)
OS version: Windows_NT x64 10.0.18362
Restricted Mode: No
System Info
| Item | Value |
|---|---|
| CPUs | Pentium(R) Dual-Core CPU T4300 @ 2.10GHz (2 x 2095) |
| GPU Status | 2d_canvas: enabled gpu_compositing: enabled multiple_raster_threads: disabled_off oop_rasterization: unavailable_off opengl: enabled_on rasterization: unavailable_off skia_renderer: enabled_on video_decode: unavailable_off vulkan: disabled_off webgl: enabled webgl2: unavailable_off |
| Load (avg) | undefined |
| Memory (System) | 3.93GB (1.25GB free) |
| Process Argv | C:\Users\fernando lap\Desktop\Angular\01-bases --crash-reporter-id f4ccbb7a-205e-482b-b8c0-f6c33cd0027e |
| Screen Reader | no |
| VM | 0% |
Extensions (15)
| Extension | Author (truncated) | Version |
|---|---|---|
| ng-template | Ang | 12.2.0 |
| bracket-pair-colorizer-2 | Coe | 0.2.1 |
| vscode-install-vsix | fab | 1.4.0 |
| auto-close-tag | for | 0.5.12 |
| activitusbar | Gru | 0.0.46 |
| pack-vsix | igo | 0.0.91 |
| angular-essentials | joh | 12.0.0 |
| blockman | leo | 1.2.8 |
| Angular-BeastCode | Mik | 10.0.3 |
| vscode-language-pack-es | MS- | 1.60.2 |
| angular2-inline | nat | 0.0.17 |
| vsix-viewer | onl | 1.0.5 |
| material-icon-theme | PKi | 4.10.0 |
| tsimporter | pmn | 2.0.1 |
| install-time | sof | 0.1.5 |
(1 theme extensions excluded)
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30300192
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
pythondataviewer:30285071
pythonvsuse255:30340121
vscod805cf:30301675
pythonvspyt200:30340761
vscextlangct:30333562
binariesv615:30325510
pythonvssor306:30344512
bridge0708:30335490
pygetstartedc2:30360494
bridge0723:30353136
pythonf5test824cf:30361778
vsdyn420:30356812
pydsgsc2:30361791
vscus224:30358039
Metadata
Metadata
Assignees
Labels
*duplicateIssue identified as a duplicate of another issue(s)Issue identified as a duplicate of another issue(s)