Top "Typescript" questions

TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.

Create component to specific module with Angular-CLI

I'm starting to use angular-cli and I've already read a lot to find an answer about what I want to …

angular typescript angular-cli
merge two object arrays with Angular 2 and TypeScript?

I have gone across the JavaScript questions on this topic, this question is specifically about Angular2 with TypeScript. What I …

arrays typescript angular
How to get a variable type in Typescript?

I have a variable. abc:number|string; How can I check its type? I want to do something like below: …

typescript
No provider for Http StaticInjectorError

I am trying to pull the data from my api, and populate it in my ionic app, but it is …

angular typescript ionic-framework
TypeScript static classes

I wanted to move to TypeScript from traditional JS because I like the C#-like syntax. My problem is that …

javascript class static typescript
Typescript: React event types

What is the correct type for React events. Initially I just used any for the sake of simplicity. Now, I …

javascript reactjs typescript
'mat-form-field' is not a known element - Angular 5 & Material2

I'm trying to use <mat-form-field> in an Angular project using Material2 but I've hit a wall. Getting the …

angular typescript angular-material2
Angular 2 Scroll to top on Route Change

In my Angular 2 app when I scroll down a page and click the link at the bottom of the page, …

angular typescript angular2-routing angular2-template angular2-directives
How to manage Angular2 "expression has changed after it was checked" exception when a component property depends on current datetime

My component has styles that depend on current datetime. In my component I've got the following function. private fontColor( dto : …

angular typescript time styles components
Can't perform a React state update on an unmounted component

Problem I am writing an application in React and was unable to avoid a super common pitfall, which is calling …

javascript reactjs typescript lodash setstate