How to call disableAutoStyling() in angular2 onsen framework

75 Views Asked by At

I am new to angular2 and onsen ui framework. I want to use IOS style in both Android and IOS devices. I can see examples to call ons.disableAutoStyling() in JS to force devices to use IOS style. But I am not able to call this function in Angular2. Its giving error. I also tried (<Element>document.querySelector('ons')).disableAutoStyling() but same error.
Could you please help me here.

0

There are 0 best solutions below