Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

write html inside component angular

<div class="myClass">
    <div class="myHeader" id="headerId"> Title </div>
    <div class="myContent" id="contentId"> <ng-content></ng-content> </div>
</div>

<my-component title="Title" headerID=headerId contentID=contentID>
    <<Some HTML code>>
</my-component>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #write #html #component #angular
ADD COMMENT
Topic
Name
3+7 =