Last active
November 7, 2016 09:41
-
-
Save hpstuff/a3b2290e344e4bf7ca1aecdba2d340e8 to your computer and use it in GitHub Desktop.
Components
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<AccordionComponent> | |
<AccordionItemComponent *ngFor="item of someItems"> | |
<span header>item.title</span> | |
<div class="custom-styles"> | |
{{item.content}} | |
</div> | |
</AccordionItemComponent> | |
</AccordionComponent> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<MapAndTilesComponent | |
[lat]="42.697708" | |
[lon]="23.321868" | |
[zoom]="5" | |
[images]="['/image-01.jpg', '/image-02.jpg', '/image-03.jpg', '/image-04.jpg', '/image-05.jpg', '/image-06.jpg']" > | |
</MapAndTilesComponent> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<WizardComponent [current-step]="1"> | |
<WizardStepComponent> | |
<RadioListComponent [value]="selectedOption" (onSelectionChange)="selectedOption = $event"> | |
<RadioBoxComponent *ngFor="let checkbox of checkboxes" [value]="checkbox.value"> | |
{{checkbox.label}} | |
</RadioBoxComponent> | |
</RadioListComponent> | |
</WizardStepComponent> | |
<WizardStepComponent> | |
<TextFieldComponent [multiline]="true" [value]="message"></TextFieldComponent> | |
</WizardStepComponent> | |
<WizardStepComponent> | |
<TextFieldComponent [type]="email" [value]="yourEmail"></TextFieldComponent> | |
<CheckBoxComponent [value]="checked" (onChange)="checked = $event"> | |
<span>Text for <a href="#"><strong>checkbox</strong></a> label</span> | |
</CheckBoxComponent> | |
</WizardStepComponent> | |
<section complete> | |
<!-- Success message //--> | |
</section> | |
</WizardComponent> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://angular.io/docs/ts/latest/guide/forms.html (for CheckBoxComponent, TextFieldComponent, RadioListComponent, RadioBoxComponent)
http://blog.mgechev.com/2016/01/23/angular2-viewchildren-contentchildren-difference-viewproviders/ (for WizardComponent , RadioListComponent)
http://juristr.com/blog/2016/01/ng2-multi-content-projection/ (for