Questions tagged as 'typescript'

1
answer

Ionic2 add element in view

I need to create a click event that when pressed creates an input in the view. How can I do this ? Thank you Ps: use ionic2 typescript HTML <ion-navbar *navbar> <ion-title> POSimplex </ion-title> </ion-n...
asked by 06.10.2016 / 01:16
1
answer

Angle Interceptor 5 does not fire

Follow my code: app.module: import { APP_BASE_HREF } from '@angular/common'; import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { NgModule } from...
asked by 15.01.2018 / 11:54
2
answers

Post with x-www-form-urlencoded in the Angular

Hello, I have a POST request that is of content-type: x-www-form-urlencoded. I need to pass some parameters on my Body, like this: I'mdoingthisbelowtoaddmyparameterstotherequestbody: ObtendoToken(): Observable<string> { cons...
asked by 07.06.2018 / 21:46
1
answer

Is it possible to create an object / class / interface that represents a signature of a function?

Everything already works as expected in my code. What I'm wanting is to make it verbose, making method signatures more self-explanatory (I know I can use Doc comments for this, but I'd also like to use TypeScript types) and can be better valid...
asked by 18.07.2017 / 14:17
2
answers

Difference between start date and end date with moment js

I need to tell you how much time I have for a certain timer, I have the date from which I started the event. I'm developing with angular 4 typescript and I use plugin moment js In my html I'm doing this: <div class="row ca...
asked by 01.11.2017 / 15:26
1
answer

Navigation by Id Ionic 2

Hello. I'm developing an application with ionic 2 and I have the following situation. I have 2 tables, 'stores' and 'publications'. My question is, how do you go to the 'store' listing to open each publication, according to the name of eac...
asked by 29.08.2017 / 00:16
1
answer

accessing class data in a global scope with typescript

I'm developing an app in Angular 2 and I'm using the Youtube API. The Youtube API requires that I implement some functions in the global scope, so I did the following: export class MyClass { dados: any; constructor( ... ) { ... }...
asked by 21.03.2017 / 21:19
2
answers

Difference of '' and ''

I'm reading ng-book 2 on Angular 2 and in one of the exercises a question arose. When setting up my first code component it does not display the title and link values in the console, but the second works perfectly. The first one...
asked by 05.03.2017 / 15:34
1
answer

Application startup delay

I created a multiplatform application using Ionic 2 + Angular 2 according to Get started from Ionic documentation . The basic command to create a side menu project is as follows: $ionic start myApp sidemenu There is something that is bot...
asked by 06.12.2017 / 16:38
1
answer

Change attribute of a component in another non-angular component

I have two components: Registration and Login In the RecordComponent I have this anchor: <a id="titleClient">Already have a account? Click here</a> I need when the user clicks the anchor change in the login component the a...
asked by 04.12.2018 / 12:18