Trying to get my parser to work with ngModel