Questions tagged as 'typescript'

2
answers

two-way bind with Select2 in aurelia.io

Question How to implement a two-way link of an object to a VM in aurelia.io without losing the functionality of Select2 and maintaining the full link of the original, and also changes in the VM see reflected in the Select2 . Context...
asked by 03.12.2015 / 02:53
1
answer

Show response from an Http.get in Angular2

I am trying to learn Typescript and Angular2 . What I do is consult a public service when I click and print the note, but I'm getting the following error: Cannot read property 'quotes' of undefined in [{{quote.contents.quotes.quot...
asked by 31.01.2016 / 16:43
1
answer

Print what is in a CANVAS HTML tag

I'm trying to print the content of a% HTML% tag, so everything goes perfectly, so what I'm doing through the div library is that you can write a text and add an image as shown below: CONTENT IMAGE But, when trying to print the...
asked by 29.06.2018 / 16:49
2
answers

Error in NgFor Can not find a differ supporting object '[object Object]'

I need some help, I'm working on a project in angular on an agenda, but when I try to call the database objects I get the following error:    Can not find a differ supporting object '[object Object]' of type   'object' NgFor only supports bin...
asked by 14.07.2017 / 06:04
3
answers

Use of routelink in the base html

I'm trying to use the routerLink property of the "tag to" in the html that loads when the page starts. This works well within the template of a component, but in this case it is not necessary to render a component, since the menu is s...
asked by 27.10.2016 / 00:37
2
answers

What does .map do for an http?

I was doing a test service and from my component when calling the service and wanting to add ".sucribe" it gave me an error that the method was not an observable ... Searching on the internet I managed to solve the problem if in my service I...
asked by 17.04.2018 / 16:39
1
answer

How to create a reactive form in Angular

I have to implement some test in ionic, the questions for these test I collect them from the database and I show them. I have the problem when collecting the data. To start I keep the data of the questions in a array of objects...
asked by 13.02.2018 / 12:20
1
answer

Socket.io google maps

I am building a small system, to see the location of a user in real time with google maps. I have a backend echo in node.js (socket.io). A frontend where I see a google map and the scoreboard in real time. and an app which sends the data to t...
asked by 17.05.2017 / 16:04
2
answers

TypeScript default constant export

We have a TypeScript library that we are publishing to a private NPM environment and we want to use it in other projects whether they are in TS, ES6 or ES5. Let's say that the library is a npm package called foo , whose main file works...
asked by 23.09.2016 / 13:28
1
answer

Error using services and HttpClient with observables

I want to use services and HttpClient with observables, when using HttpClient without service everything works very well but when I pass it as a service I could not manage to use it. Investigating I read that I should use observ...
asked by 22.02.2018 / 15:26