I want to make a form for user that can fill in their first name and second name.
I want to use angularjs. But I don't know how to bind two different input to one line. I tried this code without any success.
<form data-ng-app="">
Voornaam: <input type="text" name="firstname" data-ng-model='name1'><br>
Achternaam: <input type="text" name="lastname" data-ng-model='name2'><br>
<h4>Name: <span style=" text-transform: capitalize;" data-ng-bind='name1; name2' ng-trim='false'> </span></h4>
</form>