From 7bc648b3f30d557ac223e13a5b61a3323918a2dc Mon Sep 17 00:00:00 2001 From: Scott Date: Wed, 9 Aug 2017 04:25:49 +0800 Subject: [PATCH] feat(datepicker): export unexported components for potential extension (#6314) 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,