Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="form-group input-group">
- <span class="input-group-addon"><i class="fa fa-fw fa-mail-reply"></i></span>
- <input type="email" class="form-control" [(ngModel)] = "profile" placeholder="Enter Your E-mail">
- </div>
- {{profile}}
- import { Component, OnInit } from '@angular/core';
- @Component({
- selector: 'app-forms',
- templateUrl: './forms.component.html',
- styleUrls: ['./forms.component.css']
- })
- export class FormsComponent implements OnInit {
- profile;
- constructor() { }
- ngOnInit() {
- }
- submit() {
- alert('Submitted');
- }
- }
Add Comment
Please, Sign In to add comment