flex-layout icon indicating copy to clipboard operation
flex-layout copied to clipboard

FlexLayout styles are getting added automatically when AOT complier ON not JIT...

Open rmathi opened this issue 7 years ago • 7 comments

Hi All, In my application using Angular 7, Angular Material & typescript and FlexLayout are latest version. The problem is FlexLayout styles are getting added automatically when AOT compiler ON not JIT compiler. When i turned off AOT compiler the styles are not added. Also tried to set flexlayout config FlexLayoutModule.withConfig({addFlexToParent: false}); but it doesn't help.

So, could please explain anyone why its applying only when AOT ON not in JIT ? and how to remove the automatically added styles? Thanks in Advance.

rmathi avatar Feb 07 '19 11:02 rmathi

Please provide a minimal reproduction that we can investigate. This doesn't happen with our demo app.

CaerusKaru avatar Feb 08 '19 06:02 CaerusKaru

@rmathi as a general rule.. use www.stackovweflow.com for questions.. if you have found a but and there is a template to fill out and follow when submitting a bug report then you should follow it :)

mackelito avatar Feb 08 '19 06:02 mackelito

Not sure if this is the right place to add my thoughts, but I experienced also an issue with AOT. Although I used: FlexLayoutModule.withConfig( { disableDefaultBps: true } ), there were still the default breakpoints besides my custom ones after building my project. Therefore I had to remove AOT to make it work as expected.

"@angular/flex-layout": "^7.0.0-beta.23"

florian-badaluma avatar Feb 08 '19 12:02 florian-badaluma

f you have found a but and there is a template to fill out and follow when submitting a bug report then you should foll

@mackelito Sure.. I will update it as per the template.

rmathi avatar Feb 11 '19 05:02 rmathi

Not sure if this is the right place to add my thoughts, but I experienced also an issue with AOT. Although I used: FlexLayoutModule.withConfig( { disableDefaultBps: true } ), there were still the default breakpoints besides my custom ones after building my project. Therefore I had to remove AOT to make it work as expected.

"@angular/flex-layout": "^7.0.0-beta.23"

@florian-badaluma Thanks for the Information. Here i couldn't remove the AOT. I have fix the issues by making parent as Flexlayout container but my question is why its happening only AOT not JIT and how to remove the automatically added styles?

rmathi avatar Feb 11 '19 05:02 rmathi

I'm going to close this issue since it's been over a month since I asked for a minimal reproduction and none was provided. If this is a genuine issue, we can reopen.

CaerusKaru avatar Mar 17 '19 01:03 CaerusKaru

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.