This repository was archived by the owner on Dec 4, 2017. It is now read-only.
File tree 1 file changed +7
-3
lines changed
public/docs/ts/latest/cookbook
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -316,14 +316,18 @@ code-example(language="html" escape="html" format="linenums").
316
316
already furnished with id's.
317
317
318
318
As alternative you can also use the `explicit labelling` syntax. For this syntax you are required to add an `id` to
319
- the `HTML` form element to connect the label.
319
+ the `HTML` form element to connect the label up .
320
320
321
321
This is also the reason why `implicit labelling` could come in very useful with reusable Angular 2 components.
322
322
Remember that an `id` should be unique on a page, and any component where `explicit labelling` is used, will need
323
- a way to add unique id's to the elements.
323
+ a way to add unique id's to the elements, unless it is certain that the component will only be used once per page .
324
324
325
325
This time we will only look at adding an `explicit label` to an `INPUT`. The examples under the `implicit labelling`
326
- section can easily be adjusted once you know how this works.
326
+ section can then easily be adjusted to use this pattern.
327
+
328
+ **NOTE:** In the example code we are generating `GUID's` for id's to ensure that they are unique. You can use your
329
+ own method to do this, as long as every page id is unique.
330
+
327
331
328
332
329
333
.l-main-section
You can’t perform that action at this time.
0 commit comments