Most voted "typescript" questions
Typescript is a super superset of Javascript created by Microsoft that adds optional types, classes, interfaces and modules and compiles for pure Javascript.
Learn more…1,167 questions
Sort by count of
-
-2
votes0
answers8
viewsHow to pick up service object and send to another
I have the following problem. I’m working with nestJs and mongodb I need to store the data of an object, which arrives through an http POST, in two different Clicks from mongoDB. I’ve tested it…
-
-3
votes2
answers596
viewsHow to use a dynamic url in angular projects 6
I now need to send my project, created in Angular 6, to Homolog. I have a file called app.constants and inside a class called Configuration. In this class I "failed" the API url for my tests, like:…
-
-3
votes1
answer282
viewsI can’t get my mat-table popular
This is my html with the mat-table <div> <table mat-table [dataSource] = "dataSource" class="mat-elevation-z8"> <ng-container matColumnDef="codigo"> <th mat-header-cell…
-
-3
votes2
answers144
viewsRepeat structure that compares equal values and prints the match
I have two arrays: operator.table_perm has screen ids and the array canvases has in addition to the id, the name of the screens. I need to create a repeat structure that compares the two arrays and…
-
-3
votes1
answer34
viewsIterate object inside object at Angular 8
would like to know if it is possible to display one object inside another at angle 8. In case I have the property of the employee and within it has a department object with other properties. I’d…
-
-3
votes1
answer220
viewsSubmenu Bootstrap in Jquery for Typescript
I am starting my studies with Typescript and I am trying (and need) to modify a code that I found ready, which is in Jquery. But I need it all in Typescript, but I’m not able to make it work yet.…
-
-3
votes1
answer262
viewsRead Json Angular 9 format
my api returns a json format as follows { "Errors": [], "Result": [ { "CompanyName": "teste inicio", "FantasyName": "inicio" }, { "CompanyName": "teste meio", "FantasyName": "meio" }, {…
angular typescript front-end angularjs-directives angular-materialasked 4 years ago Thiago Ubiratan 353 -
-3
votes1
answer40
viewsChanging strings of an object in a foreach
I’m in trouble: I mount an object from an insert list: This list I put in a variable and insert inside a function with foreach, however, so that it works correctly within the function can not have…
-
-3
votes1
answer155
viewsHow to force typescript to interpret a parameter as a namespace instead of a class when they have the same name - gRPC
I am implementing a small crud using gRPC and typescript, my problem is: The self-generated stubs create a class and a "type" for each parameter in the protofile. For example, the Userid parameter…
-
-3
votes2
answers135
viewsProblem with a list of selectable items that are stored in an array
Hello, I need to create a list where I can select one of the items and also deselect, but I’m having problems because the list only selects correctly if I select in ascending order and desiccate in…
-
-4
votes3
answers116
viewsHow to return the value of a file outside its scope
[I hate javascript/typescript] Here’s the thing, I have a problem where I need to get the result of a file with Axios and return to a function in React. Is there any way to do that ? I want to…
-
-4
votes1
answer85
viewsAngular - Typescript filter in array
I have a json from Brazilian cities. To get all the cities of the state that exist in the idEstate ARRAY with SINGLE item, I do it as follows: getCidades(idEstado: any): Observable<any> {…
-
-4
votes1
answer240
viewsHow to use Enum with hierarchy / nesting and subgroup
I have a enum class called Example as follows: export enum Example { // enums pertercentes ao grupo A: enumA1, enumA2, enumA3, // enums pertercentes ao grupo B: enumB1, enumB2, enumB3, // enums…
-
-4
votes2
answers626
viewsReset React-Select (Unform) after Ubmit
I’m studying Reactjs and Typescript, and also a lib for forms called Unform (https://github.com/Rocketseat/unform). I have a form with some fields, among them a Select field…
-
-4
votes1
answer216
viewsProperty 'todos' is Missing in type '{ setTodos: (todos: Itodo[]) => void; key: string; text: string; }' but required in type 'Props'
These are my mistakes: Property 'todos' is Missing in type '{ setTodos: (todos: Itodo[]) => void; key: string; text: string; }' but required in type 'Props'. Property 'id' does not exist on type…
-
-4
votes0
answers14
viewsMy div is not moving when using Framer Motion in React
It was supposed to be a div down when I scroll the page, but that doesn’t happen. Someone could tell me the possible reasons? const { scrollYProgress } = useViewportScroll(); const frameTop =…
-
-5
votes2
answers81
viewsInaccessible attribute value
Hello, I’m trying to get the attribute of an object in my view but I can’t, whenever I try to give Undefined "Controller" Service Interface View (backend) View Front (brownser) So far in this way I…