Skip to content

Instantly share code, notes, and snippets.

@alexzuza
Created October 14, 2017 17:34
Show Gist options
  • Save alexzuza/db1fdf389470dc918a83cac660508fc7 to your computer and use it in GitHub Desktop.
Save alexzuza/db1fdf389470dc918a83cac660508fc7 to your computer and use it in GitHub Desktop.
import { Component } from '@angular/core';
@Component({
selector: 'address',
template: `
<fieldset ngModelGroup="address">
<div>
<label>Zip:</label>
<input type="text" name="zip" ngModel>
</div>
<div>
<label>Street:</label>
<input type="text" name="street" ngModel>
</div>
<div>
<label>City:</label>
<input type="text" name="city" ngModel>
</div>
</fieldset>
`
})
export class AddressComponent {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment