I need to declare my html tag(angular directive) as below in javascript. How do i do with correct js syntax.
$scope.myList =[ {title='Angular1' content='<div angular-one></div>'},
{title='Angular2' content='<div angular-two></div>'}];
I will bind this value back to html later. I just want to know how do declare above angular-one and angular-two directives inside the div tag using javascript.
in the html, i will call the passed value from javascript and bind the directive in the html.
{{content}}
my directive get displayed as string like instead of binding as html.