import { Component, OnInit } from '@angular/core' import { DemoService } from '../../../demo/services/demo.service' @Component({ selector: 'app-forms-index', template: `

Form elements

Username
?
Invalid feedback
Toggle switch single
Radios
Inline Radios
Checkboxes
Inline Checkboxes
Bootstrap's Custom File Input
@
.example.com
https://example.com/users/
$ .00
`, }) export class FormsIndexComponent implements OnInit { public users = [] public photos = [] constructor(private demoService: DemoService) {} ngOnInit() { this.users = this.demoService.users this.photos = this.demoService.photos .slice(30, 39) .map((photo, idx) => Object.assign({}, photo, { checked: idx % 2 === 0 })) } }