This repository was archived by the owner on Jan 6, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 763
This repository was archived by the owner on Jan 6, 2025. It is now read-only.
angular4 aot compilation #236
Copy link
Copy link
Closed
Labels
Milestone
Description
Hi all I've just update to angular4 but now it break when the application is render.
What I'm doing is using custom media query.
This is my code:
export const customBreakPoints: BreakPoint[ ] = [
{
alias: 'small',
suffix: 'Xs',
overlapping: false,
mediaQuery: 'screen and (max-width: 319px)'
},
{
alias: 'small',
suffix: 'GtXs',
overlapping: true,
mediaQuery: 'screen and (max-width: 319px)'
},
{
alias: 'mobile',
suffix: 'Sm',
overlapping: false,
mediaQuery: 'screen and (min-width: 320px) and (max-width: 767px)'
},
{
alias: 'mobile',
suffix: 'GtSm',
overlapping: true,
mediaQuery: 'screen and (min-width: 320px) and (max-width: 767px)'
},
{
alias: 'tablet',
suffix: 'Md',
overlapping: false,
mediaQuery: 'screen and (min-width: 768px) and (max-width: 1023px)'
},
{
alias: 'tablet',
suffix: 'GtMd',
overlapping: true,
mediaQuery: 'screen and (min-width: 768px) and (max-width: 1023px)'
},
{
alias: 'desktop',
suffix: 'Lg',
overlapping: false,
mediaQuery: 'screen and (min-width: 1024px)'
},
{
alias: 'desktop',
suffix: 'GtLg',
overlapping: true,
mediaQuery: 'screen and (min-width: 1024px)'
},
{
alias: 'desktop',
suffix: 'Xl',
overlapping: false,
mediaQuery: 'screen and (min-width: 1024px)'
}
];
@NgModule({
bootstrap: [AppComponent],
imports: [
BrowserModule,
HttpModule,
FlexLayoutModule
],
declarations: [
AppComponent
],
providers: [
...
{provide : BREAKPOINTS, useValue: customBreakPoints}
]
})
export class AppModule {
constructor() {
}
}
I did something wrong or something happen with angular4?
thanks
edallagnol