/* * Copyright (c) 2016 VMware, Inc. All Rights Reserved. * This software is released under MIT license. * The full license information can be found in LICENSE in the root directory of this project. */ import {Component, ViewChild} from "@angular/core"; import {Wizard} from 'clarity-angular/wizard/wizard'; @Component({ selector: "clr-wizard-form-validation", templateUrl: "./wizard-form-validation.demo.html" }) export class WizardFormValidation { @ViewChild("wizard") wizard: Wizard; model = { name: "", favorite: "" }; code: string = ` import {Component, ViewChild} from "@angular/core"; import {Wizard} from "clarity-angular"; @Component({ ... }) export class WizardFormValidation { @ViewChild("wizard") wizard: Wizard; open: boolean = false; model = { name: "", favorite: "" }; } `; html: string = `
Wizard Title
Form with validation Wizard complete
Congratulations! You are done with this wizard.
`; }