I've appended the some html to a div by angular.js like this
var myEl = angular.element( document.querySelector( '#form' ) );
myEl.append(
'<div layout="row" layout-wrap layout-padding >'+
'<div flex = "50" flex-sm = "100" flex-md = "100" flex-lg = "50">'+
'<div layout = "row" layout-align = "center center">'+
'<img class="md-avatar">'+
'</div>'+
'<div layout = "row" layout-align = "center center">'+
'<md-button class="md-raised" style="width: 200px;white-space: normal;line-height: 12px;">'+
'<i class="fa fa-upload"></i>'+
'Upload New Image'+
'</md-button>'+
'</div>'+
'</div>'+
'<div flex = "50" flex-sm = "100" flex-md = "100" flex-lg = "50">'+
'<i class="fa fa-trash-o" style = "float:right;"></i>'+
'<md-input-container flex>'+
'<label>Name</label>'+
'<input type="text" >'+
'</md-input-container>'+
'<md-input-container flex>'+
'<label>Title</label>'+
'<input type="text" >'+
'</md-input-container>'+
'<md-input-container flex>'+
'<label>Email</label>'+
'<input type="email" >'+
'</md-input-container>'+
'<md-input-container flex>'+
'<label>Telephone</label>'+
'<input type="text" >'+
'</md-input-container>'+
'</div>'+
'</div>'
);
But the recently added elements not taking the website's css i'm using Angular-material as css framework .
Please guide me into this and what should i fix.
$compile