angularj js : html template insertion: modify the attribute value with each insertion

Hello stack overflow community!
this is a mini version of my code. in this example I’m trying to insert my template in each div in the index.html and change its id with each insertion.
+ why do the h1 elements disappear?

    <div id= "simpleSearchType OR advancedSearchType OR expertSearchType"  >
    this is the div to be inserted
</div >

any help will be appreciated, thanks.

Source: AngularJS