What I am trying to do is add the directive ng-checked
in a label <a>
with JQuery since I use Bootstrap Material Design and this makes me not work with said mentioned directive, since this CheckBox is redefined by some Script. When trying to do something like this:
<div class="switch">
<label>
<input type="checkbox" ng-checked="myRadio"> Active
</label>
</div>
ng-checked="myRadio"
It appears as is in the html. Any suggestion?
You can't do that, before generating the pure HTML code Angular.js compiles all the directives and templates. To make a modification of the directives or add new templates to the DOM object it is necessary to use the $compile library, take a look at it.
But to your answer, No, you can't put an angular directive by JQuery and have it work.
Apparently ng-checked doesn't exist for Angular, but for AngularJS. which the code would be