ng-qradio
v0.1.1
Published
> `npm install ng-qradio`
Downloads
2
Readme
QRadio
npm install ng-qradio
Example
import { Component, ViewEncapsulation } from "@angular/core";
import { RadioList } from "ng-qradio";
@Component({
selector: "radio-example",
encapsulation: ViewEncapsulation.Emulated,
template: `
<QRadioGroup name="name" [radioList]="radioList" [(model)]="model"></QRadioGroup>
`
})
export class RadioExample {
model = "B";
radioList: RadioList = [
{ label : "Option A", value : "A" },
{ label : "Option A", value : "B" }
];
}
Boot
import { QRadio, QRadioGroup } from "ng-qradio";
@NgModule({
declarations: [
QRadioGroup,
QRadio,
RadioExample,
],
imports: [
FormsModule,
BrowserModule
],
exports: [
RadioExample,
]
})
export class AppModule { }