angularjs - Passing id and as a parameter to directive -


I have an instruction, if the ID has not been passed, then generate it one But it seems that the generation is slow to slow down and that the ID is not present in the instruction

  {function (angular) {'hard use';; angular.module (' WidgetsModule ') .directive (' myDirective ', [function] {function postLink (scope, jqElm, attr) {} function postCompile (Telement, tAttrs) {return function postLink (scope, jqElm, attr) {attr. Inspection ("id", function (id) {// init scope.id = id Called on == Undefined ID: 'some1';});}} function Ctrl (scope) {} {return template: '
' + ' & Lt; / div & gt; ', Controller: [' $ scope ', Ctrl], Replace: Correct, scope: {ID:' @ '}, Restrict:' AC ', link: Post link, compile : PostCompile};}]);}} (Window.angular)

I think Is that id is special because it has a valid dom feature in my case id also in the form of an attribute for HTML Insect was going, not that inner child, where I was able to use it.

I have a new feature called Input

  & lt; Autosuggest input-id = "country" & gt; & Lt; / Autosuggest & gt;  

is the generated markup:

  & lt; Div class = "autosuggest" & gt; & Lt; Input id = "country" & gt; & Lt; / Div & gt;  

... which I think you are later.

The radius block looks like this for the command:

  Regions: {inputId: '@'}  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -