Comments (6)
Which version of Angular 2 are you trying to integrate with. The official release or a RC version? It makes a difference if your version of Angular 2 uses NgModules or not.
from ng2-datepicker.
Hi
I'm using Angular RC 5 and it uses ngModule
When I imported to the module. It said cannot find module ng2-datepicker
from ng2-datepicker.
@cukingpro If you look at the package.json, ng2-datepicker uses Angular RC.4, which doesn't use NgModule if I'm not mistaken. So there is no ng2-datepicker module. Check out the comments from #49 .
I think you need in the module where you are using the datepicker.
import {DatePicker} from 'ng2-datepicker/ng2-datepicker';
@NgModule({
...,
declarations: [DatePicker, ...],
...
})
from ng2-datepicker.
That's right. This should work with Angular 2.0.0.
from ng2-datepicker.
Hello.
I use angular 2.0.0-rc.5. Can someone explain how to use this module?
In my app.mosule.ts I did:
import { DatePicker } from '../node_modules/ng2-datepicker/ng2-datepicker';
...
@NgModule({
...,
declarations: [DatePicker, ...],
...
})
But after compilation I got an error:
Error: SyntaxError: Unexpected token <
at Object.eval (http://10.10.17.179:8181/js/app.module.js:16:24)
at eval (http://10.10.17.179:8181/js/app.module.js:50:4)
at eval (http://10.10.17.179:8181/js/app.module.js:51:3)
Evaluating http://10.10.17.179:8181/node_modules/ng2-datepicker/ng2-datepicker
Evaluating http://10.10.17.179:8181/js/app.module.js
Evaluating http://10.10.17.179:8181/js/main.js
Error loading http://10.10.17.179:8181/js/main.js
from ng2-datepicker.
from ng2-datepicker.
Related Issues (20)
- about @hotlistener
- Automatic dropdown position feature request
- Option to not apply default input styles
- Not work with ReactiveForms
- How to clear selected date from UI? HOT 1
- ngModel null issue HOT 2
- The calendar remains opened even after the input looses focus
- Open calendar pop up on icon click event as well as input field
- Ability to keep calendar open after selecting a date
- How can i disable specific days like sunday, monday or whatever I need? HOT 1
- display month list
- Not showing dates in Saturday column on latest version of Edge on Windows HOT 2
- Locale option doesn't work with date-fns > 2
- Resetting a datepicker causes a jump, back to 1970 HOT 3
- upgrade to angular9 occurs error HOT 3
- Set value manually
- What happened to the headless attribute ? HOT 1
- Stackblitz
- Demo link taking users to malware
- Update UI when used in a reactive form.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng2-datepicker.