I am having trouble incorporating Angular Material's md-autocomplete into my angular application. I have already customized the CSS being used in my application, but when I add the Angular Material CSS, it messes up the entire page.
Even when I tried scoping the CSS specifically to that div, it still manages to override the parent CSS as well.
This is how I inserted the CSS into my page :
<div>
<style>
The complete Angular material CSS code goes here.
(https://ajax.googleapis.com/ajax/libs/angular_material/1.0.0/angular-material.min.css)
</style
</div>
I assumed that the above method would confine the CSS only to that particular div. However, it seems to leak into other divs as well.
I also attempted to remove portions of the original CSS in order to streamline it to only the styles required by md-autocomplete. Unfortunately, this process is time-consuming and the outcomes are not satisfactory.
Can someone please advise me on how to effectively implement the md-autocomplete feature within my existing HTML file?