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.

Component not working on Angular 5

See original GitHub issue

In Angular 5 @angular/http is now deprecated and no longer exists. Now you need to use HttpClient from @angular/common/http. Please fix this. The component is not compilling in the current version

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
sam-1994commented, Dec 13, 2017

I had the same error and fixed it by adding "@angular/http": "^5.0.2" to the dependencies, even if i use @angular/common/http

0reactions
Sebi11commented, May 26, 2018

This issue seems to be solved by this commit : https://github.com/akveo/ng2-smart-table/commit/1d51de2

Read more comments on GitHub >

github_iconTop Results From Across the Web

angular 5 routing on same component is not working
If you are staying on the same path that you are trying to route to , Angular router won't re-initialize the component.
Read more >
Upgrading from AngularJS to Angular
This not only makes components easy to navigate and find, but will also allow us ... which in turn is a superset of...
Read more >
Using Angular routes in a single-page application
This tutorial describes how to build a single-page application, SPA that uses multiple Angular routes. In a Single Page Application (SPA), all of...
Read more >
Lazy-loading feature modules - Angular
To lazy load Angular modules, use loadChildren (instead of component ) in your AppRoutingModule routes configuration as follows. AppRoutingModule (excerpt)
Read more >
Input - Angular
By default, the original name of the bound property is used for input binding. The following example creates a component with two input...
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