Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- submitForm: function (e){
- if (e) { e.preventDefault(); }
- console.log(document.getElementById('form').validate());
- if (document.getElementById('form').validate()) {
- nama = document.getElementById('form').serialize()["nama"];
- email = document.getElementById('form').serialize()["email"];
- password = document.getElementById('form').serialize()["password"];
- this.$.auth.createUserWithEmailAndPassword(email, password).then(function(response){}).catch(function(error){});
- this.reset();
- }
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement