Questions tagged as 'typescript'

2
answers

Show Map with ionic point 2

Personal use ionic 2 beta in a project with ts, has the cordenadas of a point, I would like to know how I can do to put the map with the current position of the user and a marker in the saved coordinates. How can I do it ? Thanks     
asked by 21.10.2016 / 00:43
1
answer

Plug-in to use TypeScript in NetBeans 8.1?

I'm using NetBeans 8.1, but it does not recognize the syntax of TypeScript . Is there a plug-in that works well with TypeScript in NetBeans 8.1? If it does not exist, what IDE would be indicated?     
asked by 28.07.2016 / 00:53
1
answer

Insert Command Line in typescript

I have a MongoDB installation and configuration script as needed by the company. Install_MongoDB.BAT But I would like to automate this process by including in the project in TypeScript. I would like to insert commands that I created in .ba...
asked by 04.12.2018 / 22:15
1
answer

Timer with active session time: Cook time expiration time - autal moment

I'm working with Angular, and when I save the access token in a cookie, I also save (in another cookie) its expiration time (30 minutes). I want to make a timer that shows the user how long he still has to log in, but I'm having some difficultie...
asked by 02.01.2019 / 11:59
1
answer

Repetition structure does not work when my object is copied without reference

I need to remove an attribute from my object (indexvariance attribute), but I need it to stay in the root object. This is my algorithm that receives in the variable my object variable and then I remove the indexvariacao attribute attribute of...
asked by 20.11.2018 / 19:40
1
answer

How can I remove a value from the array by clicking the checkbox in typescript

I have a checkbox which when clicked pushes in an array of name perm_telas, however when I select an already selected check again it is not correctly removing the array value. I've tried something like: @ViewChildren('myItem') item; //Aqu...
asked by 31.07.2018 / 14:33
1
answer

Problem in production build when using CryptoJS

I have an application written in Angular 6 and there has been a need to send a hash to the client. The contractor only approved the use of crypto-js library. I did the implementation and everything works correctly in ng serve , but...
asked by 04.10.2018 / 14:41
1
answer

Problem with routerLink in angle 6

I'm having the following error: Can't bind to 'routerLink' since it isn't a known property of 'a'. (" <h6 class="text-center"> Do not have an account yet? <a [ERROR ->][routerLink]="['/signup']">...
asked by 26.09.2018 / 00:50
1
answer

Use global variable in Typescript with NodeJS

I'm looking for a way to use global variable in typescript with NodeJS. For example in js I can do: //init.js global.foo = "foo"; //teste.js var foo = global.foo; Is there any way I can do this in typescript? PS: I know it's not good pr...
asked by 07.09.2018 / 18:43
1
answer

How to list files in a directory and use in an Angular2 + Webpack project

Hello, I'm creating a project in Angular2 + Webpack and in this project I use the @angular/material as the design library. So that I can create my own icons using SVG, I'm extending the component MatIcon as it says in the documentation...
asked by 19.06.2018 / 14:31