Doesn't work for me
See original GitHub issue** 1st error without editing system.config **
Steps that I did
- npm install ng2-datepicker --save
Since I used ionicons in my app. I didn’t add it again but I also tried it to put in my index.html.
- Import module
import { DatePicker } from 'ng2-datepicker/ng2-datepicker'
- Used it on my component. I used reactive forms.
<datepicker formControlName="dateFrom" [expanded]="true"></datepicker>
** 2nd error **
When I add this to systemjs.config.js
map: {
'ng2-datepicker': 'npm:ng2-datepicker',
'moment': 'npm:moment',
},
packages: {
'ng2-datepicker': { main: 'ng2-datepicker.js', defaultExtension: 'js' },
'moment': { main: 'moment.js', defaultExtension: 'js' }
}
I’m not going to use it for all the components. Just for several components.
Any help would be appreciated. Thanks
Issue Analytics
- State:
- Created 7 years ago
- Comments:14 (1 by maintainers)
Top Results From Across the Web
What is the difference between "it doesn't work for ... - HiNative
(2) It doesn't work for me means 1. a particular method/way of doing something does not work for the person 2. something is...
Read more >“That doesn't work for me.”. A How to Guide on Being Assertive
In a world full of people pleasing, being assertive is a needed trait. It forces you to strike the perfect balance.
Read more >"This doesn't work for me" is the biggest mistake you'll make
Mindset matters in your small business. Learn how this simple statement "this doesn't work for me" can cripple your business, and what to...
Read more >It doesn't work for me - WordReference Forums
It means that talking to ten different people about the same things is unacceptable to him, Kohlridg. This is nothing that he wants...
Read more >it doesn't work to me or it doesn't work for me? - TextRanch
It doesn't work for me to go on with this thing, with such a wide gulf between those who understand, love and are...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think the best way to use custom css for now would be something like that :
You may need to adapt template/style urls to your build system but that’s the spirit.
We’re working on a better way to customize DatePicker.
@ghetolay thanks for your response, but I’ve already solved a problem in the other way, and lost those lines of code. We had to implement a bunch of custom functionality so we’ve decided to proceed with a custom solution.