import {MaterializeDirective} from "../../src/index"; import {Component,OnInit} from "@angular/core" @Component({ selector: "forms", template: `
account_circle
phone

Value: {{isTest6Checked}}

Value: {{radioButtonValue}}



{{isDisabled?"Enable":"Disable"}} Form



First Name: {{firstName}}
Selected Option: {{selectedOption}}
` }) export class Forms implements OnInit { private firstName = ""; private selectedOption = ""; private selectOptions = []; private isTest5Checked = false; private isTest6Checked = true; private radioButtonValue = 3; public ngOnInit() { window.setTimeout(()=>{ this.selectOptions = [ {value:1,name:"Option 1"}, {value:2,name:"Option 2"}, {value:3,name:"Option 3"} ] },100); // window.setInterval(()=>{ // console.log(this.radioButtonValue); // },500); } isDisabled = false; }