title: Firebase 5.8^ sendEmailVerification
body: <p>I am trying to make <code>firebase</code> create user by email and send the verification email.
  It has changed I believe in version 5+ </p>
  
  <p>I cannot seem to get it to function.</p>
  
  <p>Can someone help explain where am I going wrong?</p>
  
  <p>The following error message I keep getting is</p>
  
  <blockquote>
    <p>TypeError: user.sendEmailVerification is not a function</p>
  </blockquote>
  
  <p>This is my TS file.</p>
  
  <pre><code>onSubmit(form: NgForm) {
  
  const fullname = form.value.fullname;
  const email = form.value.email;
  const password = form.value.password;
  
  
  firebase.auth().createUserWithEmailAndPassword(email, password)
  .then(function(user) {
      user.sendEmailVerification();
  })
  .then(function () {
      console.log('User signup success');
      alert('Signed Up');
  })
  .catch(function (err) {
      console.log(err);
      alert('Error!');
  });
  </code></pre>