浏览代码

README typo

Richard Knight 5 年之前
父节点
当前提交
77b18f120b
共有 2 个文件被更改,包括 8 次插入8 次删除
  1. 7 7
      README.md
  2. 1 1
      src/app/_mock/testfields.v14.ts

+ 7 - 7
README.md

@@ -40,7 +40,7 @@ export class AppModule { }
 
 
 ```
 ```
 
 
-In any component where you want to generate a form, import and then inject the DynaformService.
+In any component where you want to generate a form, import and then inject `DynaformService`.
 
 
 ```typescript
 ```typescript
 import { Component } from '@angular/core';
 import { Component } from '@angular/core';
@@ -48,11 +48,11 @@ import { FormGroup } from '@angular/forms';
 import { DynaformService } from './dynaform'; // Paths may vary
 import { DynaformService } from './dynaform'; // Paths may vary
 
 
 @Component({
 @Component({
-	selector: 'app-root',
-	templateUrl: './app.component.html',
-	styleUrls: ['./app.component.scss']
+	selector: 'some-formy-thing',
+	templateUrl: './some-formy-thing.component.html',
+	styleUrls: ['./some-formy-thing.component.scss']
 })
 })
-export class AppComponent implements OnInit {
+export class SomeFormyThingComponent implements OnInit {
 
 
 	form: FormGroup;
 	form: FormGroup;
 	meta: StringMap<any>;
 	meta: StringMap<any>;
@@ -80,9 +80,9 @@ ngOnInit() {
 ```
 ```
 ### Build strategies
 ### Build strategies
 
 
-Dynaform supports two build strategies: MODELFISRT and METAFIRST (the default)
+Dynaform supports two build strategies: **MODELFISRT** and **METAFIRST** (the default)
 
 
-MODELFIRST generates a form from the supplied model, and by default will ignore any metadata points that don't occur in the model.
+MODELFIRST generates a form from the supplied model, and by default will ignore any metadata points that don't occur in the model. If you supply no metadata all fields will render as text inputs.
 
 
 METAFIRST generates a form from the supplied metadata, and by default will ignore any data in the model that doesn't have a corresponding metadata entry.
 METAFIRST generates a form from the supplied metadata, and by default will ignore any data in the model that doesn't have a corresponding metadata entry.
 
 

+ 1 - 1
src/app/_mock/testfields.v14.ts

@@ -36,4 +36,4 @@ const meta = {
 	}
 	}
 };
 };
 
 
-export { model, meta };
+export { model, meta };