question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Install with Angular CLI

See original GitHub issue

Is there a way to install datepicker into existing project created by angular-cli ?

Using npm install just copy repository to node_modules and doesn’t creates js-file, required by “installation of 3rd party libs

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
armnocommented, Sep 22, 2016

maybe a bit too late but here is how I put this module with angular-cli

  • angular-cli 1.0.0-beta.14
  • angular 2.0.0
  • ng2-datepicker 1.0.6
$ npm install ng2-datepicker

in app.module.ts

// import datepicker component
import { DatePicker } from 'ng2-datepicker/ng2-datepicker';

// the put the component in `declarations` option
@NgModule({
  declarations: [
    AppComponent,
    DatePicker,
    ...
  ]
})

that’s it. <datepicker> is available to the app. hope it helps.

1reaction
jkuricommented, Sep 12, 2016

but yes, upgrading your app won’t do any harm as RC6 is definitely more like the final release then the one you have now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CLI Overview and Command Reference - Angular
The Angular CLI is a command-line interface tool that you use to initialize, develop, scaffold, and maintain Angular applications directly from a command ......
Read more >
How To Install Angular CLI - KnowledgeHut
Create an Angular App with the CLI. Once Angular CLI is installed, you can now install an Angular app. From your command prompt...
Read more >
Angular CLI - npm
CLI tool for Angular. ... Start using @angular/cli in your project by running `npm i @angular/cli`. ... Install. npm i @angular/cli ...
Read more >
A Guide to Angular CLI, Node.js, and Build Tools
Installing Angular CLI on Windows ... First, you need to have Node and npm installed on your development machine. There are many ways...
Read more >
How to install and use the Angular CLI? - Daniel Kreider
Before installing the Angular CLI, you'll need to install Node.js. If you're using a Windows or Mac download it here. And for the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found