diff options
Diffstat (limited to 'js/components/contact/contact_controller.js')
-rw-r--r-- | js/components/contact/contact_controller.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/js/components/contact/contact_controller.js b/js/components/contact/contact_controller.js index 2fffd08c..e6cd51d1 100644 --- a/js/components/contact/contact_controller.js +++ b/js/components/contact/contact_controller.js @@ -1,6 +1,8 @@ -app.controller('contactCtrl', ['$filter', function($filter) { +app.controller('contactCtrl', ['Contact', function(Contact) { var ctrl = this; - console.log($filter('vCard2JSON')(ctrl.data.addressData)); + ctrl.contact = new Contact(ctrl.data); + + console.log(ctrl.contact); }]);
\ No newline at end of file |