javascript - Directive link function passed element is the whole page -
the element passed variable in link function of directive contains whole html of page instead of directive html
angular.module('app.elements').directive('inputwithtags', function ($timeout) { .... return { restrict: 'e', templateurl: 'inputwithtags.html', scope: { tags: '=tags', options: '=options', customtagsallowed: '=customtagsallowed', inline: '=inline' }, link: function(scope, element) { ... // contains whole page html
html
<input-with-tags tags="viewer.manager.visitreviewdata.visitreviewissues" options="viewer.manager.visitreviewdata.visitissues" custom-tags-allowed="true" inline="true"> </input-with-tags>
Comments
Post a Comment