After careful consideration, I opted to utilize the responsive grid system provided by @angular/flex-layout
instead of Bootstrap. By simply installing the npm package and adding it to my AppModule
, I was able to integrate it seamlessly:
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import {
MdButtonModule,
MdSnackBarModule,
MdProgressBarModule,
MdDialogModule,
MdRippleModule,
MdTooltipModule,
MdProgressSpinnerModule,
MdSidenavModule,
MdTabsModule,
MdMenuModule
} from '@angular/material';
import { FlexLayoutModule } from '@angular/flex-layout';
import { AppComponent } from './app.component';
import { HomeComponent } from './home/home.component';
import { AppRoutingModule } from './app-routing.module';
@NgModule({
imports: [
BrowserModule,
BrowserAnimationsModule,
FlexLayoutModule,
MdButtonModule,
MdSnackBarModule,
MdProgressBarModule,
MdDialogModule,
MdRippleModule,
MdTooltipModule,
MdProgressSpinnerModule,
MdSidenavModule,
MdTabsModule,
MdMenuModule,
AppRoutingModule
],
declarations: [
AppComponent,
HomeComponent
],
bootstrap: [AppComponent]
})
export class AppModule { }
However, upon implementation, I encountered the following errors:
Error log details here...
The packages involved in this setup are as follows:
"@angular/animations": "~5.0.0-beta.6",
"@angular/cdk": "^2.0.0-beta.10",
"@angular/common": "^5.0.0-beta.6",
"@angular/compiler": "^5.0.0-beta.6",
"@angular/core": "^5.0.0-beta.6",
"@angular/flex-layout": "^2.0.0-beta.9",
"@angular/forms": "^5.0.0-beta.6",
"@angular/http": "^5.0.0-beta.6",
"@angular/material": "^2.0.0-beta.10",
"@angular/platform-browser": "^5.0.0-beta.6",
"@angular/platform-browser-dynamic": "^5.0.0-beta.6",
"@angular/router": "^5.0.0-beta.6",
"core-js": "^2.4.1",
"hammerjs": "^2.0.8",
"rxjs": "^5.1.0",
"zone.js": "^0.8.10"