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

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -