186
rated 0 times
[
190]
[
4]
/ answers: 1 / hits: 29397
/ 9 Years ago, thu, august 13, 2015, 12:00:00
I'm quite simply trying to find out how I can retrieve the scopes information to see if it has a value or not in the controller.
I need to be able to write an if statement that says if this text input field is filled do this... if else do something different.
<form name=deadlineForm>
<div class=app-select-date>
<label for=deadline>Select deadline:</label>
<input pickadate ng-model=deadline format=dd/mm/yyyy placeholder=Select deadline/>
</div>
</form>
What is the best way about writing this code in the controller?
More From » angularjs