summaryrefslogtreecommitdiffstats
path: root/js/components/contactList
diff options
context:
space:
mode:
Diffstat (limited to 'js/components/contactList')
-rw-r--r--js/components/contactList/contactList_controller.js3
-rw-r--r--js/components/contactList/contactList_directive.js12
2 files changed, 15 insertions, 0 deletions
diff --git a/js/components/contactList/contactList_controller.js b/js/components/contactList/contactList_controller.js
new file mode 100644
index 00000000..c64b5ecd
--- /dev/null
+++ b/js/components/contactList/contactList_controller.js
@@ -0,0 +1,3 @@
+app.controller('contactlistCtrl', function() {
+ var ctrl = this;
+}); \ No newline at end of file
diff --git a/js/components/contactList/contactList_directive.js b/js/components/contactList/contactList_directive.js
new file mode 100644
index 00000000..68cda6a0
--- /dev/null
+++ b/js/components/contactList/contactList_directive.js
@@ -0,0 +1,12 @@
+app.directive('contactlist', function() {
+ return {
+ priority: 1,
+ scope: {},
+ controller: 'contactlistCtrl',
+ controllerAs: 'ctrl',
+ bindToController: {
+ addressbook: '='
+ },
+ templateUrl: OC.linkTo('contactsrework', 'templates/contactList.html')
+ };
+}); \ No newline at end of file