Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Ionic modal service with extras

$
0
0

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;


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>