Comments (14)
I am planning to do this in the next days.
from ng2-datepicker.
Okay. Thank you very much. I'm so excited to use this plugin with anguar-cli.
from ng2-datepicker.
Done. Please see the readme.
from ng2-datepicker.
Hi, @jkuri . I've tried to follow the instruction but everytime I run the ng install ng2-datepicker
command, I always get the following error:
The
ember generate <entity-name>
command requires an entity name to be specifi
ed. For more details, useember help
.
from ng2-datepicker.
Please try following the whole install procedure and make sure you linked angular-cli
correctly. Also make sure you are not using ng new
inside angular-cli/
directory which you cloned before.
If any problems persist feel free to write here again.
from ng2-datepicker.
Hi @jkuri . I've followed the procedure correctly, but now I got the following error everytime I run ng install ng2-datepicker
command:
Cannot find module 'npm'
Error: Cannot find module 'npm'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:289:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Class.module.exports.Task.extend.init (F:\ANGULARJS\angular-cli\addon\ng2
\tasks\lib-install.js:22:28)
at new Class (F:\ANGULARJS\angular-cli\node_modules\angular-cli\node_modules
\core-object\core-object.js:18:12)
at Class.module.exports.Command.extend.run (F:\ANGULARJS\angular-cli\addon\n
g2\commands\install.js:24:26)
at Class. (F:\ANGULARJS\angular-cli\node_modules\angular-cli\lib
models\command.js:151:17)
at lib$rsvp$$internal$$tryCatch (F:\ANGULARJS\angular-cli\node_modules\angul
ar-cli\node_modules\rsvp\dist\rsvp.js:1036:16)
at lib$rsvp$$internal$$invokeCallback (F:\ANGULARJS\angular-cli\node_modules
\angular-cli\node_modules\rsvp\dist\rsvp.js:1048:17)
from ng2-datepicker.
Try npm link npm
and then try again.
from ng2-datepicker.
I think I have successfully installed the plugin. But when I run the browser, I got following error in the console.log:
GET http://localhost:4200/ng2-datepicker 404 (Not Found)
It seems that there is a problem with linking the source file. How do I solve this?
from ng2-datepicker.
Please check the source of generated html, then check the source of thirdparty/libs.js ... is it empty?
from ng2-datepicker.
Do you mean the file inside the dist folder?
All I got inside the index.html's body tag is as follow:
<script src="vendor/systemjs/dist/system.src.js"></script>
<script src="vendor/rxjs/bundles/Rx.js"></script>
<script src="vendor/angular2/bundles/angular2.dev.js"></script>
<script src="vendor/angular2/bundles/http.dev.js"></script>
<script src="vendor/angular2/bundles/router.dev.js"></script>
As you see, there's no such thing as thirdparty/libs.js
:(
from ng2-datepicker.
That means you didn't follow the instructions but you installed angular-cli via npm, or you forgot to npm link angular-cli
in your project. Please follow the instructions, I really can't help you more than providing exact commands, what can go wrong?
from ng2-datepicker.
git clone https://github.com/angular/angular-cli.git && cd angular-cli && npm install && npm link && cd .. && ng new your-project-name && cd your-project-name && npm link angular-cli && ng install ng2-datepicker && ng serve
copy & paste that into terminal, then open your browser at localhost:4200
.
from ng2-datepicker.
Thanks @jkuri . It works really well. Now I wonder how to implement it to an existing project. I think it's difficult for me to generate all new project just to implement this plugin and build everything all over again.
Anyway, thank you very much. Nice plugin! Have a nice day! 👍
from ng2-datepicker.
Np.
On Sunday, 7 February 2016, Agung Surya Bangsa [email protected]
wrote:
Thanks @jkuri https://github.com/jkuri . It works really well. Now I
wonder how to implement it to an existing project. I think it's difficult
for me to generate all new project just to implement this plugin and build
everything all over again.Anyway, thank you very much. Nice plugin! Have a nice day! [image: 👍]
—
Reply to this email directly or view it on GitHub
#6 (comment).
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.