If I add angular material directive md-button like this :
angular.element( document.body ).append( '<md-button> Material' )
It will not recognize that it's angular directive. The question is - how to recompile scope/element
If I add angular material directive md-button like this :
angular.element( document.body ).append( '<md-button> Material' )
It will not recognize that it's angular directive. The question is - how to recompile scope/element
Not sure if you should be doing this, but the right way is to use the
$compile
function:Working plunker.