mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
chore(): add package.json for radio
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"name": "@angular2-material/radio",
|
||||
"version": "2.0.0-alpha.1",
|
||||
"description": "Angular 2 Material radio",
|
||||
"main": "./radio.js",
|
||||
"typings": "./radio.d.ts",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/angular/material2.git"
|
||||
},
|
||||
"keywords": [
|
||||
"angular",
|
||||
"material",
|
||||
"material design",
|
||||
"components",
|
||||
"radio"
|
||||
],
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/angular/material2/issues"
|
||||
},
|
||||
"homepage": "https://github.com/angular/material2#readme",
|
||||
"peerDependencies": {
|
||||
"angular2": "^2.0.0-beta.8",
|
||||
"@angular2-material/core": "2.0.0-alpha.1"
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
<!-- TODO(jelbourn): render the radio on either side of the content -->
|
||||
<!-- TODO(mtlin): Evaluate trade-offs of using native radio vs. cost of additional bindings. -->
|
||||
<label [attr.for]="inputId" class="md-radio-label">
|
||||
<!-- The actual `radio` part of the control. -->
|
||||
<!-- The actual 'radio' part of the control. -->
|
||||
<div class="md-radio-container">
|
||||
<div class="md-radio-outer-circle"></div>
|
||||
<div class="md-radio-inner-circle"></div>
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
import {Component, DebugElement} from 'angular2/core';
|
||||
import {By} from 'angular2/platform/browser';
|
||||
|
||||
import {MdRadioButton, MdRadioGroup, MdRadioChange} from './radio_button';
|
||||
import {MdRadioButton, MdRadioGroup, MdRadioChange} from './radio';
|
||||
import {MdRadioDispatcher} from './radio_dispatcher';
|
||||
|
||||
export function main() {
|
||||
@@ -161,8 +161,8 @@ export class MdRadioGroup implements AfterContentInit {
|
||||
|
||||
@Component({
|
||||
selector: 'md-radio-button',
|
||||
templateUrl: './components/radio/radio_button.html',
|
||||
styleUrls: ['./components/radio/radio-button.css'],
|
||||
templateUrl: './components/radio/radio.html',
|
||||
styleUrls: ['./components/radio/radio.css'],
|
||||
encapsulation: ViewEncapsulation.None
|
||||
})
|
||||
export class MdRadioButton implements OnInit {
|
||||
@@ -1,5 +1,5 @@
|
||||
import {Component} from 'angular2/core';
|
||||
import {MdRadioButton, MdRadioGroup} from '../../components/radio/radio_button';
|
||||
import {MdRadioButton, MdRadioGroup} from '../../components/radio/radio';
|
||||
import {MdRadioDispatcher} from '../../components/radio/radio_dispatcher';
|
||||
|
||||
@Component({
|
||||
|
||||
Reference in New Issue
Block a user