Guest User

Untitled

a guest
Dec 7th, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. <div class="form-group input-group">
  2. <span class="input-group-addon"><i class="fa fa-fw fa-mail-reply"></i></span>
  3. <input type="email" class="form-control" [(ngModel)] = "profile" placeholder="Enter Your E-mail">
  4. </div>
  5. {{profile}}
  6.  
  7. import { Component, OnInit } from '@angular/core';
  8.  
  9. @Component({
  10. selector: 'app-forms',
  11. templateUrl: './forms.component.html',
  12. styleUrls: ['./forms.component.css']
  13. })
  14. export class FormsComponent implements OnInit {
  15. profile;
  16. constructor() { }
  17.  
  18. ngOnInit() {
  19. }
  20.  
  21. submit() {
  22. alert('Submitted');
  23. }
  24.  
  25. }
Add Comment
Please, Sign In to add comment