You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 29, 2019. It is now read-only.
If a template contains a directive that has a "require" option it will fail with the error stating that required controller can't be found. To fix I replaced element.replaceWith($compile(tplContent.trim())(scope)); to
var tplEl = angular.element(tplContent.trim()); element.replaceWith(tplEl); $compile(tplEl)(scope);
inside typeaheadMatch directive. This places the element into the DOM before compiling it, thereby resolving the issue of the missing dependent controller.
The text was updated successfully, but these errors were encountered:
If a template contains a directive that has a "require" option it will fail with the error stating that required controller can't be found. To fix I replaced
element.replaceWith($compile(tplContent.trim())(scope));
tovar tplEl = angular.element(tplContent.trim());
element.replaceWith(tplEl);
$compile(tplEl)(scope);
inside
typeaheadMatch
directive. This places the element into the DOM before compiling it, thereby resolving the issue of the missing dependent controller.The text was updated successfully, but these errors were encountered: