Solved the issue with
Inside your model controller
var vm = $scope;
instead of
var vm = this
setup your model in the controller
vm.customerObject = {
name: 'customer name'
};
and refer the above model in the html directly like this
<input type="text" name="Name" placeholder="Name" ng-model="customerObject.name" ng-model-options="{updateOn: 'blur'}" ng-minlength="5" ng-maxlength="150" required>
[Note: vm.customerObject.name does't work hence referring it directly]
my model controller looks like this:
'use strict';
export class ProjectController {
constructor($scope, logger, parameters, projectService) {
'ngInject';
var vm = $scope;