diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-08 12:04:04 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-08 15:30:52 +0100 |
commit | 7edd6d1792c846319c86028ecee101d4535c4fd9 (patch) | |
tree | fec33a84b3e09eedcbde6768712952512acc6ee4 /js/models | |
parent | 30775a793000304419b0d7c4e402ac1e0a5eeb39 (diff) |
Org and title are now part of the header - fixes #103
Diffstat (limited to 'js/models')
-rw-r--r-- | js/models/contact_model.js | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/js/models/contact_model.js b/js/models/contact_model.js index 6951f651..24179b74 100644 --- a/js/models/contact_model.js +++ b/js/models/contact_model.js @@ -32,6 +32,36 @@ app.factory('Contact', [ '$filter', function($filter) { } }, + title: function(value) { + if (angular.isDefined(value)) { + // setter + return this.setProperty('title', { value: value }); + } else { + // getter + var property = this.getProperty('title'); + if(property) { + return property.value; + } else { + return undefined; + } + } + }, + + org: function(value) { + if (angular.isDefined(value)) { + // setter + return this.setProperty('org', { value: value }); + } else { + // getter + var property = this.getProperty('org'); + if(property) { + return property.value; + } else { + return undefined; + } + } + }, + email: function() { // getter var property = this.getProperty('email'); |