Skip to content

Instantly share code, notes, and snippets.

@molcik
Created September 30, 2017 09:45
Show Gist options
  • Save molcik/09a9746c6b1f59af3b74d1ff4216eee5 to your computer and use it in GitHub Desktop.
Save molcik/09a9746c6b1f59af3b74d1ff4216eee5 to your computer and use it in GitHub Desktop.
import {BrowserModule} from '@angular/platform-browser';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {NgModule, LOCALE_ID} from '@angular/core';
import {CommonModule} from '@angular/common';
import {
MdDatepickerModule,
MdIconModule,
MdInputModule,
MdToolbarModule,
MdNativeDateModule,
} from '@angular/material';
import {AppComponent} from './app.component';
/**
* NgModule that includes MaterialModule and other necessary imports
*/
@NgModule({
imports: [
BrowserModule,
CommonModule,
MdDatepickerModule,
MdIconModule,
MdInputModule,
MdToolbarModule,
MdNativeDateModule,
BrowserAnimationsModule
],
declarations: [AppComponent],
bootstrap: [AppComponent],
providers: [
{provide: LOCALE_ID, useValue: 'en-GB'}, // Here change datepicker locale
]
})
export class AppModule {}
/*
Copyright 2016 Google Inc. All Rights Reserved.
Use of this source code is governed by an MIT-style license that
can be found in the LICENSE file at http://angular.io/license
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment