Top "Typescript" questions

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

Iterating over Typescript Map

I'm trying to iterate over a typescript map but I keep getting errors and I could not find any solution …

typescript iterator maps
Angular pass callback function to child component as @Input similar to AngularJS way

AngularJS has the & parameters where you could pass a callback to a directive (e.g AngularJS way of callbacks. …

angularjs angular typescript
Create an enum with string values

Following code can be used to create an enum in TypeScript: enum e { hello = 1, world = 2 }; And the values can be …

typescript
How to use jQuery with TypeScript

I am trying $(function(){ alert('Hello'); }); Its showing this error in Visual Studio: (TS) Cannot find name '$'.. How …

typescript
Angular2: How to load data before rendering the component?

I am trying to load an event from my API before the component gets rendered. Currently I am using my …

typescript angular angular2-services angular2-http
I get "Http failure response for (unknown url): 0 Unknown Error" instead of actual error message in Angular

I'm using Angular 4 HttpClient to send requests to external service. It is a very standard setup: this.httpClient.get(url).…

angular typescript
Angular2 - Http POST request parameters

I'm trying to make a POST request but i can't get it working: testRequest() { var body = 'username=myusername?password=mypassword'; …

typescript angular
Confusing "duplicate identifier" Typescript error message

Why am I getting this and many more errors of this kind? I am adding a link to the repo …

typescript
Angular redirect to login page

I come from the Asp.Net MVC world where users trying to access a page they are not authorized are …

login typescript angular angular2-routing
Does Typescript support the ?. operator? (And, what's it called?)

Does Typescript currently (or are there plans to) support the safe navigation operator of ?. ie: var thing = foo?.bar // same …

typescript