From 02748c53d085c2bf88f223df9fe050049a29ab86 Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 10 Aug 2015 18:31:02 +0200 Subject: [PATCH] Fixed typos & bugs that prevented the code from running on iOS devices --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7cf763f..8100e16 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ For now, you should create a child-directive to customize (API probably going to .directive('myMention', function($http){ return { require: 'uiMention', - link($scope, $element, $attrs, uiMention) { + link: function($scope, $element, $attrs, uiMention) { /** * Converts a choice object to a human-readable string * @@ -25,7 +25,7 @@ For now, you should create a child-directive to customize (API probably going to * @return {string} Human-readable string version of choice */ uiMention.label = function(choice) { - return `${choice.first_name} ${choice.last_name}`; + return choice.first_name + " " + choice.last_name; }; /** @@ -47,7 +47,7 @@ You have to build the HTML yourself:
-