'router-outlet' is not a known element?

I have a mvc 5 project with a angular frontend . I wanted to add routing as described in this tutorial https://angul...

How to load an image in Angular??

I have this code but Angular is failing to load images. Images source and list components are subfolders of the app ...

No provider for HttpClient?

After upgrading from angular 4.4 to 5.0 and after updating all HttpModule and Http to HttpClientModule I started to ...

'tsc command not found' in compiling typescript?

I want to install typescript, so I used the following command: npm install -g typescript and test tsc --version,...

Constructor overload in TypeScript?

Has anybody done constructor overloading in TypeScript. On page 64 of the language specification (v 0.8), there are ...

'router-outlet' is not a known element?

I have a mvc 5 project with a angular frontend . I wanted to add routing as described in this tutorial https://angul...

Ionic storage not working in chrome browser?

I am new to Ionic app development and I have been following tutorials for the same. I have been trying to use Ionic...

What is the difference between annotation and decorator??

I am confused when to use term annotation and when to use decorator ? @Component({ selector: 'tabs', ...

typescript function to return nullable Promise?

trying to create a function that returns a promise with values that can be resolved to null trying to do something ...

TypeScript: Read generic type of value in object?

I have this interface: interface Api { state: Converter<State>; water: Converter<Water>; version:...

Restricting generic types to one of several classes in Typescript?

In Typescript, how do you restrict a generic type to one of several classes at compile time? For example, how do you...

Property 'value' does not exist on type 'Readonly<{}>'?

I need to create a form that will display something based on the return value of an API. I'm working with the follow...

angular2 onError image binding?

I'm wondering if we can bind or interpolate the onError on the image tag using angular2, on the app.component.ts: ...

In Typescript, what is the ! (exclamation mark / bang) operator when dereferencing a member??

When looking at the sourcecode for a tslint rule, I came across the following statement: if (node.parent!.kind === ...

how to extend service with dependencies in angular 2?

I have a parent service which has some dependencies like @Injectable() export class ParentService{ constructor(pr...