Giter Site home page Giter Site logo

Comments (14)

jkuri avatar jkuri commented on July 18, 2024

I am planning to do this in the next days.

from ng2-datepicker.

agungsb avatar agungsb commented on July 18, 2024

Okay. Thank you very much. I'm so excited to use this plugin with anguar-cli.

from ng2-datepicker.

jkuri avatar jkuri commented on July 18, 2024

Done. Please see the readme.

from ng2-datepicker.

agungsb avatar agungsb commented on July 18, 2024

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, use ember help.

from ng2-datepicker.

jkuri avatar jkuri commented on July 18, 2024

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.

agungsb avatar agungsb commented on July 18, 2024

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.

jkuri avatar jkuri commented on July 18, 2024

Try npm link npm and then try again.

from ng2-datepicker.

agungsb avatar agungsb commented on July 18, 2024

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.

jkuri avatar jkuri commented on July 18, 2024

Please check the source of generated html, then check the source of thirdparty/libs.js ... is it empty?

from ng2-datepicker.

agungsb avatar agungsb commented on July 18, 2024

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.

jkuri avatar jkuri commented on July 18, 2024

That means you didn't follow the instructions but you installed angular-cli via npm, or you forgot to npm link angular-cliin your project. Please follow the instructions, I really can't help you more than providing exact commands, what can go wrong?

from ng2-datepicker.

jkuri avatar jkuri commented on July 18, 2024
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.

agungsb avatar agungsb commented on July 18, 2024

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.

jkuri avatar jkuri commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.