From 49e73a89f36b1c44d7547b8910bcb17e96135294 Mon Sep 17 00:00:00 2001 From: Wesley Cho Date: Thu, 11 Jun 2015 09:47:28 -0700 Subject: [PATCH] chore(typeahead): change to one-way binding for position - Change position to one-way binding to reduce an unnecessary $watch chore(typeahead): add bind once to id attr --- src/typeahead/typeahead.js | 2 +- template/typeahead/typeahead-popup.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/typeahead/typeahead.js b/src/typeahead/typeahead.js index b1efde2409..10b7778cf7 100644 --- a/src/typeahead/typeahead.js +++ b/src/typeahead/typeahead.js @@ -357,7 +357,7 @@ angular.module('ui.bootstrap.typeahead', ['ui.bootstrap.position', 'ui.bootstrap matches:'=', query:'=', active:'=', - position:'=', + position:'&', select:'&' }, replace:true, diff --git a/template/typeahead/typeahead-popup.html b/template/typeahead/typeahead-popup.html index e1bd0c1c47..9760c154b5 100644 --- a/template/typeahead/typeahead-popup.html +++ b/template/typeahead/typeahead-popup.html @@ -1,5 +1,5 @@ -