Questions tagged as 'typescript'

1
answer

Confirm Ionic registration password 3

I have a registration form on Ionic 3, but I can not validate the password with another ion input. register.html: <ion-item class = "log-input"> <ion-label floating>Email</ion-label> <ion-input type="text" #usern...
asked by 28.05.2018 / 00:44
1
answer

Angular-cli ng generate library does not work

I have a project in version 5 of Angular, which generates a library using the rollup and works correctly. However I'm migrating from version 5 to version 6 of angular and wanted to use angular-cli, which already generates a library in the same p...
asked by 13.06.2018 / 15:23
1
answer

Problem not get using google API with Angular

I have an angled application that should search the Google API for long and lat. I created this method below to set up my call HTTP.GET() : ObterGeolocalizacao(): Observable<any> { const cep = this.formulariServices.ObterFor...
asked by 07.06.2018 / 16:26
1
answer

Calculate and Decrease Values in Array

I'm trying to decrement and calculate values from an unsuccessful array. The decrementation works to a certain extent, then decrements different values from what is clicked on the checkbox and the calculation appears on the console as NaN....
asked by 19.03.2018 / 03:10
2
answers

Auto Cast with TypeScript?

Straight to the point: Is there a way to perform auto cast using an interface as a template in Ionic (TypeScript + Angular 5)? If not, can Lint recognize that an object coming from the server is not within the expected interface contract?...
asked by 01.03.2018 / 22:50
1
answer

How are modifiers implemented in TypeScript?

TypeScript supports all JavaScript features (ECMAScript 6 itself), as well as modifiers such as private , protected and abstract . However, in ES6 there are no such modifiers. To "emulate" the modifier private you ca...
asked by 08.02.2018 / 04:39
1
answer

Polymorphism with interface and abstract class

How do I make a method defined in the iDAO interface be passed to be implemented by class ProprietarioDAO , daughter of abstract class absDAO , which implements iDAO ? import { EntidadeDominio } from "../../models/Enti...
asked by 21.02.2018 / 15:49
1
answer

Is there any collections in TypeScript, such as java?

If it does not exist, why does not it exist since the object orientation in typescript is so 'well structured'?     
asked by 17.01.2018 / 03:31
1
answer

Authenticate Angular with Steam

I'm trying to authenticate my Angular app with Steam, but this is generating this error in the log: Failed to load http://steamcommunity.com/openid/.well-known/openid-configuration: No 'Access-Control-Allow-Origin' header is present on the req...
asked by 25.01.2018 / 18:01
2
answers

Angular 2: My component does not work in index

I'd like to interpret my component within my index.html, about.html, contact.html, among other pages. I created the component using the Angular cli. My structure is as follows: The code inside my app.module.ts file is: import { A...
asked by 21.11.2017 / 16:41