Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit ef9e43e

Browse files
tinayuangaojelbourn
authored andcommitted
Fix plunker: rename radio-ngmodel; add FormsModule; use css (#56)
1 parent 892a1f7 commit ef9e43e

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

src/app/examples/example-data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class ExampleData {
1818
if (example) {
1919
this.examplePath = `/app/examples/${example}/`;
2020
// TODO(tinayuangao): Do not hard-code extensions
21-
this.exampleFiles = ['html', 'ts', 'scss']
21+
this.exampleFiles = ['html', 'ts', 'css']
2222
.map((extension) => `${example}-example.${extension}`);
2323
this.selectorName = this.indexFilename = `${example}-example`;
2424
var exampleName = example.replace(/(?:^\w|\b\w)/g, function(letter) {

src/app/examples/example-module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
DialogOverviewExampleDialog,
1919
DialogOverviewExample
2020
} from './dialog-overview/dialog-overview-example';
21-
import {RadioNgModelExample} from './radio-ngmodel/radio-ngmodel-example';
21+
import {RadioNgModelExample} from './radio-ng-model/radio-ng-model-example';
2222
import {CardFancyExample} from './card-fancy/card-fancy-example';
2323
import {ToolbarOverviewExample} from './toolbar-overview/toolbar-overview-example';
2424
import {ToolbarMultirowExample} from './toolbar-multirow/toolbar-multirow-example';
@@ -116,7 +116,7 @@ export const EXAMPLE_COMPONENTS = {
116116
title: 'Basic progress-spinner',
117117
component: ProgressSpinnerOverviewExample
118118
},
119-
'radio-ngmodel': {title: 'Radios with ngModel', component: RadioNgModelExample},
119+
'radio-ng-model': {title: 'Radios with ngModel', component: RadioNgModelExample},
120120
'radio-overview': {title: 'Basic radios', component: RadioOverviewExample},
121121
'select-overview': {title: 'Basic select', component: SelectOverviewExample},
122122
'select-form': {title: 'Select in a form', component: SelectFormExample},

src/app/examples/radio-ngmodel/radio-ngmodel-example.ts renamed to src/app/examples/radio-ng-model/radio-ng-model-example.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import {Component} from '@angular/core';
22

33

44
@Component({
5-
selector: 'radio-ngmodel-example',
6-
templateUrl: './radio-ngmodel-example.html',
7-
styleUrls: ['./radio-ngmodel-example.css'],
5+
selector: 'radio-ng-model-example',
6+
templateUrl: './radio-ng-model-example.html',
7+
styleUrls: ['./radio-ng-model-example.css'],
88
})
99
export class RadioNgModelExample {
1010
favoriteSeason: string;

src/assets/plunker/main.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
22
import {BrowserModule} from '@angular/platform-browser';
33
import {NgModule} from '@angular/core';
4+
import {FormsModule} from '@angular/forms';
45
import {MaterialModule} from '@angular/material';
56
import {MaterialDocsExample} from './material-docs-example';
67

78
@NgModule({
89

910
imports: [
1011
BrowserModule,
12+
FormsModule,
1113
MaterialModule.forRoot(),
1214
],
1315

0 commit comments

Comments
 (0)