0.1.1 • Published 8 years ago

ng-qradio v0.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
8 years ago

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 { }