Created
September 30, 2017 09:45
-
-
Save molcik/09a9746c6b1f59af3b74d1ff4216eee5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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