From 485d536b5956dff1b1fe27e3a752177d804a50b9 Mon Sep 17 00:00:00 2001 From: e-cloud Date: Mon, 7 Aug 2017 11:15:24 +0800 Subject: [PATCH] feat(datepicker): export unexported components for potential extension Although the team has export those files, but users can't redeclare them in another NgModule for angular constraints. It's impossible for someone to extend the functionality or create a custom date(time)picker view without this patch. --- src/lib/datepicker/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/datepicker/index.ts b/src/lib/datepicker/index.ts index 9f1b93af10c4..b0ea50af17f6 100644 --- a/src/lib/datepicker/index.ts +++ b/src/lib/datepicker/index.ts @@ -47,10 +47,14 @@ export * from './year-view'; A11yModule, ], exports: [ + MdCalendar, + MdCalendarBody, MdDatepicker, MdDatepickerContent, MdDatepickerInput, MdDatepickerToggle, + MdMonthView, + MdYearView, ], declarations: [ MdCalendar,