Angular responsive calendar built with material design for desktop and mobile
Do you have any question or suggestion ? Please do not hesitate to contact us!
Alternatively, provide a PR | open an appropriate issue here
If did you like this project, support angular-material-extensions
by starring ⭐ and sharing it 📢
View all the directives in action at https://angular-material-extensions.github.io/calendar
6.1.78
npm i @angular/cdk @angular/material @angular/animations @angular/forms
or use angular schematics
like e.g:
ng add @angular/material
index.html
file like below:<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
npm i -s material-design-icons
angular.json
file"styles": [
"styles.css",
"../node_modules/material-design-icons/iconfont/material-icons.css"
],
Install above dependencies via npm.
Now install @angular-material-extensions/calendar
via:
npm install --save @angular-material-extensions/calendar
Note:If you are using
SystemJS
, you should adjust your configuration to point to the UMD bundle.
In your systemjs config file,map
needs to tell the System loader where to look for@angular-material-extensions/calendar
:
map: {
'@angular-material-extensions/calendar': 'node_modules/@angular-material-extensions/calendar/bundles/calendar.umd.js',
}
Once installed you need to import the main module:
import { MatCalendarModule } from '@angular-material-extensions/calendar';
The only remaining part is to list the imported module in your application module. The exact method will be slightly
different for the root (top-level) module for which you should end up with the code similar to (notice MatCalendarModule .forRoot()
):
import { MatCalendarModule } from '@angular-material-extensions/calendar';
@NgModule({
declarations: [AppComponent, ...],
imports: [MatCalendarModule.forRoot(), ...],
bootstrap: [AppComponent]
})
export class AppModule {
}
Other modules in your application can simply import MatCalendarModule
:
import { MatCalendarModule } from '@angular-material-extensions/calendar';
@NgModule({
declarations: [OtherComponent, ...],
imports: [MatCalendarModule, ...],
})
export class OtherModule {
}
$ git clone https://github.com/angular-material-extensions/calendar.git
$ gulp link
$ cd demo
$ npm i
$ npm run start
or
$ ng serve --open
http://localhost:4200/
npm i
npm run build
or gulp build
gulp link
cd demo
npm i
npm start
Built by and for developers ❤️ we will help you 👊
This project is supported by jetbrains with 1 ALL PRODUCTS PACK OS LICENSE incl. webstorm
Copyright © 2018 Anthony Nahas. Licensed under the MIT License (MIT)