Initial commit
This commit is contained in:
16
src/app/app.component.ts
Normal file
16
src/app/app.component.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'my-app',
|
||||
template: `<form #form="ngForm">
|
||||
<json-input [(ngModel)]="result" name="res"></json-input>
|
||||
</form>
|
||||
|
||||
<p>form is valid: {{ form.valid ? 'true' : 'false' }}</p>
|
||||
|
||||
<p>Value:</p>
|
||||
<pre>{{ result | json }}</pre>`,
|
||||
})
|
||||
export class AppComponent {
|
||||
public result = 10;
|
||||
}
|
||||
Reference in New Issue
Block a user