bst365体育投注网址大全

Questions tagged [typescript]

bst365体育投注网址大全 TypeScript is a statically typed superset of JavaScript created by Microsoft that adds optional types, classes, interfaces, enums, generics, async/await, and many other features, and compiles to plain JavaScript. This tag is for questions specific to TypeScript. It is not used for general JavaScript questions.

Filter by
Sorted by
Tagged with
0
votes
1answer
7 views

Dependency Injection in Angular/ Calling a method that belongs to a service from a class

I have a component that creates an object (of type TableDataSource) and in the constructor I am also passing in a method that returns a promise (save method), however when the method gets called by ...
0
votes
0answers
5 views

Where is Angular's cdkDragPlaceholder inserted in HTML?

I am using Angular's drag and drop module with a default placeholder: <div cdkDropList ... class="A"> <div cdkDrag class="B"> Whatever </div> </div> ...
0
votes
1answer
11 views

Passing parameters on checking and un-checking of a checkbox

I am new to Angular and typescript. I need help from someone in the following requirement.I have a web page where I have a list of check boxes as given here: I have defined a isChecked boolean ...
0
votes
0answers
6 views

Angular 6 - update deep object inside array

i have a config object to send from X component to Y component from the Y component i filter the columns to get only the unique monoselect, then for each column i want to update the options of ...
0
votes
1answer
11 views

Hoe to decript string in angular 8

Tried to decript the mail as a string in angular 8 but not working.How to do it in angular 8. I have encripted email in node js and passing the encripted data by url and tying to decript in angular 8. ...
0
votes
1answer
15 views

Issue with ngFor not displaying new data pushed to the source array

I'm having a strange issue with an ngFor when new data is added to the source array. For some reason the new elements are added the DOM but seem to be immediately removed. I can only get them to ...
0
votes
2answers
27 views

How to handle click events on divs with React and Typescript

I have a custom Card component, which gets an "onClick" type, to handle clicking like so: import React from 'react'; import styles from './card.module.css'; interface Card { onClick: ...
0
votes
0answers
16 views

Extract promise type passed as parameter

Hi I am trying to achieve this: if I have a function that gets as a parameter (a promise like as handleRequest(promise: Promise<any>) in my example), I want to specify the any type in order to ...
0
votes
1answer
24 views

RN Error: Text strings must be rendered within a <Text> component

I know this question has been asked before but none of the answers helped me. I am getting this error in a file which contains this: <View style={styles.listHolder}> {data &...
1
vote
0answers
21 views

React useState delayed when updating nested object

I'm trying to update an array within my state object by pushing in an item to the array as soon as you click on a button. I'm taking a copy of state, updating that copy and setting the state to that ...
0
votes
0answers
9 views

Why can't I draw a rect on a canvas when using tensorflowjs nonMaxSuppressionAsync in Angular?

I have been using nonMaxSuppression() for making some calculations with tensorflowjs. The problem is I need to use the Async version of this function because if not used I slightly lock the main UI ...
0
votes
0answers
13 views

Get from resultpage to detailpage with ajax and database sources

I want to get from my resultpage to the detailpage which i have clicked on This is the Ajax get method where i get the data from my database and append all necessary datas in the html page of /...
0
votes
1answer
18 views

TypeScript React: Syntax Errors while trying to push a Component to an Array

I have the following component: import * as React from 'react'; import { Component } from 'react'; import { Button } from 'antd'; import { IGridElementProps } from './Grid'; interface IProps ...
0
votes
1answer
16 views

Form not pre-populated Angular 8

I have an API service which returns an array of objects. Each object has two fields name and usage. I am creating a form dynamically where the number of form fields equals the number of objects inside ...
0
votes
2answers
24 views

Angular: How to make a content editable div's placeholder persist until only when something is typed

I have a content editable div in my angular app that has attr-placeholder. I am trying to make it in a way that the placeholder disappears only when something is typed. Right now it disappears when ...

15 30 50 per page
1
2 3 4 5
7956