Closed akiyamaSM closed 3 years ago
@Component({
selector: 'app-root',
template: `
<div class="app">
<counter [init]="initialCount"></counter>
</div>
`
})
export class AppComponent {
initialCount: number = 10;
}
you can't bind a value directly, if so you need to remove the []
A similar PR may already be submitted! Please search among the Pull request before creating one.
Thanks for submitting a pull request! Please provide enough information so that others can review your pull request.
Summary
This PR fixes/implements the following bugs/features
Explain the motivation for making this change. What existing problem does the pull request solve?
Requirements
Make sure these boxes are checked: