This is my html code with ionic 2
you can do this using square brackets,
[attr.id]="m+'elementid'"
to make interpolation in the attribite of html element in angular you should use [attr.attrName]="expression"
or in your case [attr.id]="'m' + elementid"
As explained in Angular documentation, you can use interpolation:
id="{{'m' + elementid}}"
or property binding:
[id]="'m' + elementid"