Top "Typescript" questions

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

How to convert a string to number in TypeScript?

Given a string representation of a number, how can I convert it to number type in TypeScript? var numberString: string = "1234"; …

typescript
Can't bind to 'ngModel' since it isn't a known property of 'input'

I've got the following error when launching my Angular app, even if the component is not displayed. I have to …

javascript angular typescript input
Can't bind to 'formGroup' since it isn't a known property of 'form'

THE SITUATION: Please help! I am trying to make what should be a very simple form in my Angular2 app …

angular typescript angular2-forms
get and set in TypeScript

I'm trying to create get and set method for a property: private _name: string; Name() { get: { return this._name; } set: { …

typescript
How can I select an element in a component template?

Does anybody know how to get hold of an element defined in a component template? Polymer makes it really easy …

angular typescript angular-components
How do I remove an array item in TypeScript?

I have an array that I've created in TypeScript and it has a property that I use as a key. …

arrays typescript collections
How can I get new selection in "select" in Angular 2?

I am using Angular 2 (TypeScript). I want to do something with the new selection, but what I get in onChange() …

angular typescript html-select
(change) vs (ngModelChange) in angular

Angular 1 does not accept onchange() event, it's only accepts ng-change() event. Angular 2, on the other hand, accepts both (change) and (…

javascript html angular typescript angular-ngmodelchange
What is TypeScript and why would I use it in place of JavaScript?

Can you please describe what the TypeScript language is? What can it do that JavaScript or available libraries cannot do, …

javascript typescript
Is there a way to check for both `null` and `undefined`?

Since TypeScript is strongly-typed, simply using if () {} to check for null and undefined doesn't sound right. Does TypeScript have any …

typescript null-check