Model Definition AngularJS
by cmyworld
HTML
<div ng-app='myapp'></div>
JavaScript
var module = angular.module('myapp', []);
module.factory('SystemModel', [function () {
var models={};
function System() {
this.id = null;
this.actionIdentifier = null;
this.dataFieldsList = [];
}
function DataField() {
this.name = null;
this.id = null;
this.fieldType = null;
}
}]);