currently, i am practiced angular 4. when a normal user view this then show public content When A Registered user enter the web page then show edit or some content>
In angular 4 you can use if.. else.. structure for html templates
You can use it in this way:
some Content here...... some Content here .....
but in your case, the prettiest solutions will be if... then... else... conditional
some content... other content...