AngularJS directive template doesn't get compiled -
I am trying to create a conable multi-selected custom command: a model with a list of options with the checkbox I use a separate area. However, the directive template has been added in such a way, after many research and thinking, angular expressions are not interpreted, I still do not know what I am doing because it A very basic It is > (Model: '= ngmodel', option: '=' 'F' copy: '
test '+' & Lt; div class = "model" ng-show = "open"> gt; '' '
gt;' + 'button type = "button" class = "Close" ng-click = "open = wrong"> a ????
button & gt; '+' & lt; h3 & gt; {{Title}} & lt; / h3 & Gt; '+' & lt; / div & gt; '+'
button & gt; '+' & lt; h3 & gt; {{Title}} & lt; / h3 & Gt; '+' & lt; / div & gt; '+'
"+' End-modeal body - & # 39; & # 39; & # 39; & lt; div class = "modal-footer" & gt; '+' & lt; div class = "control" & gt; '+' & lt; Button class = "btn btn-success" type = "submit" ng-click = "+ '& lt; / div & gt; + '& Lt; / div & gt;', 'link: function ("open = false"> OK ' + '& lt; / div & gt;' + '& lt ; / Div & gt; scope, element, ether) {scope.open = false;}, controller: function ($ scope) {$ scope.selectAll = function () {$ scope.model = _.pluck ($ scope. Options, $ scope.idField); console.log ($ scope.model);}; $ Scope.deselectAll = function () {$ scope.model = []; console.log ($ scope.model);}; $ Scope.toggleItem = Function {ID (if (_Contains ($ scope.model, id)) {$ scope.model = _.without ($ scope.model, id);} and {$ scope.model.push (id );} Console.log ($ scope.model); Description is false;} $ Scope.itemSelected = function (id) {if (_Contains ($ scope.model, id)) {true; // Return 'icon- Ok '; // pull-right';} Description is false;};}}});
Kiss Also consider why this is not working?
No See: ng option directive Use here (
ng-options = "choices" ), as this is the instruction used on selection control.
Comments
Post a Comment