javascript - angularjs: How To concat object to string -


I want to insert the object to the string, below is my code. But it does not work

  var myobj = {name: 'test'} $ operatorContainer.append ($ compile ("
  • span ng-click = selectOperator (" + $ Operators [i] .operator_name + ") & gt; label = 'checkbox1071' class = 'lablaypेटर' & gt;" + $ operators [i] .operator_name + "& lt; / label & gt; div Class = 'custom-checkbox' style = 'height: 33px;' & gt; & lt; input ng-check = 'click iit (op)' id = 'checkbox 1071' ng-click = 'select operator () 'Name =' TVApaperator 'type =' radio '& gt; & lt; label =' checkbox1071 '& gt; & lt; / labels & gt; & lt; / div & gt; & lt; / span & gt; Lt; / li & gt; ") (Gunjai F));
  • You need to access myobj's name attribute


    Comments