<form name="vm.form">
<input name="name">
<input type="password" name="password">
</form>
How can I access input value with vm.form?
I've tried this, but it's not working:
console.log(vm.form.name)
Can I do it like this? Or are there any other easy way?
I'm posting data to other server like this:
$http.post('/someUrl', vm.form, config).then(successCallback, errorCallback);