M
M
Maxim Ivanov2016-07-22 14:28:05
Angular
Maxim Ivanov, 2016-07-22 14:28:05

How to get value from input using angular?

<input id="last_name" type="text" class="validate saveData valid" ng-blur="saveData($event, 2, 1000801)">

function saveData (e, id, step){
console.log(e)
}

I entered a value, but after blurring I can't figure out how to get the value from this input

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bio, 2016-07-22
@splincodewd

e.target.value
Но лучше использовать ng-model

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question