Prevent an empty input to the list array with AngularJS

Sorry, I have edited the post