Top "Typescript" questions

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

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 get this error. …

angular typescript
Could not find a declaration file for module 'module-name'. '/path/to/module-name.js' implicitly has an 'any' type

I read how TypeScript module resolution works. I have the following repository: @ts-stack/di. After compiling the directory structure is …

typescript node-modules
How do I download a file with Angular2 or greater

I have a WebApi / MVC app for which I am developing an angular2 client (to replace MVC). I am having …

javascript angular typescript download fileapi
Angular File Upload

I'm a beginner with Angular, I want to know how to create Angular 5 File upload part, I'm trying to find …

angular typescript
How can I define an array of objects?

I am creating an array of objects in TypeScript: userTestStatus xxxx = { "0": { "id": 0, "name": "Available" }, "1": { "id": 1, "name": "Ready" }, "2": { "id": 2, "name": "Started" } }; …

typescript
How do you format a Date/Time in TypeScript?

I've been having some trouble trying to get a Date object in TypeScript to format the way I want it …

javascript typescript
How do I dynamically assign properties to an object in TypeScript?

If I wanted to programatically assign a property to an object in Javascript, I would do it like this: var …

typescript
remove item from stored array in angular 2

I want to remove an item from a stored array in angular 2, with Type Script. I am using a service …

javascript angular typescript
Call a function on click event in Angular 2

How to declare a function inside a component (typescript) and call it on a click event in Angular 2? Following is …

javascript angular typescript
How to apply filters to *ngFor?

Apparently, Angular 2 will use pipes instead of filters as in Angular1 in conjunction with ng-for to filter results, although the …

angular typescript