You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are supposed to import whatever modules you are using in your app, ie. MdButtonModule. Either way, this is neither a bug report or feature request, support requests are better suited for gitter or stackoverflow.
AFAIK @candidosales the imports section in your CustomMaterialModule is not necessary needed as CustomMaterialModule is just for exporting required material components for your app and help to reduce your bundle during AOT ;-)
Activity
fxck commentedon Apr 8, 2017
https://angular.io/docs/ts/latest/guide/ngmodule.html
Ploppy3 commentedon Apr 8, 2017
I know how to create an Angular module. What I don't know is what we are supposed to import from @angular/material, do you ?
fxck commentedon Apr 8, 2017
You are supposed to import whatever modules you are using in your app, ie.
MdButtonModule. Either way, this is neither a bug report or feature request, support requests are better suited for gitter or stackoverflow.Ploppy3 commentedon Apr 8, 2017
This is what I do:
And in my app.module.ts I import
MyMaterialModuleand everything breaks.Am I missing something obvious ?
fxck commentedon Apr 8, 2017
Are you sure you "know how to create an angular module" or that you actually read the guide I pointed you to? This section in particular https://angular.io/docs/ts/latest/guide/ngmodule.html#!#shared-module ?
Ploppy3 commentedon Apr 8, 2017
Why not point out my mistake? Imports instead of Exports...
That doesn't change the fact that the documentation is missing.
mackelito commentedon Apr 8, 2017
All working! All Good!
Stay safe, happy and helpful!
jelbourn commentedon Apr 9, 2017
Updated the getting started guide with an example.
candidosales commentedon Apr 9, 2017
My example :)
attilacsanyi commentedon Apr 10, 2017
AFAIK @candidosales the
importssection in yourCustomMaterialModuleis not necessary needed asCustomMaterialModuleis just for exporting required material components for your app and help to reduce your bundle during AOT ;-)alexfung888 commentedon Apr 29, 2017
It is a bit annoying to repeat the list of modules in the ES5 import and the export annotation.
Does it make any difference to import hammer here? Seems I'll need to import hammer in appmodule again, since I can't export it from here.
angular-automatic-lock-bot commentedon Sep 5, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.