Top "Typescript" questions

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

How to update TypeScript to latest version with npm?

Currently I have TypeScript 1.0.3.0 version installed on my machine. I want to update it to latest one i.e. 2.0. How …

typescript npm npm-install
How do I import other TypeScript files?

When using the TypeScript plugin for vs.net, how do I make one TypeScript file import modules declared in other …

typescript
Expression ___ has changed after it was checked

Why is the component in this simple plunk @Component({ selector: 'my-app', template: `<div>I'm {{message}} </div>`, }) …

typescript angular
The property 'value' does not exist on value of type 'HTMLElement'

I am playing around with typescript and am trying to create a script that will update a p-element as text …

typescript
Typescript interface default values

I have the following interface in TypeScript: interface IX { a: string, b: any, c: AnotherType } I declare a variable of …

typescript
Angular Material: mat-select not selecting default

I have a mat-select where the options are all objects defined in an array. I am trying to set the …

angular typescript angular-material2
How to catch exception correctly from http.request()?

Part of my code: import {Injectable} from 'angular2/core'; import {Http, Headers, Request, Response} from 'angular2/http'; import {Observable} from …

http typescript angular observable
TypeScript and field initializers

How to init a new class in TS in such a way (example in C# to show what I want): // ... …

typescript
TypeScript typed array usage

I have a TypeScript class definition that starts like this; module Entities { export class Person { private _name: string; private _possessions: …

arrays typescript
In Angular, how do you determine the active route?

NOTE: There are many different answers here, and most have been valid at one time or another. The fact is …

javascript typescript angular angular2-routing