Questions tagged as 'angular'

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
1
answer

Angular 6 ngFor

You can explain why the ngFor directive is triggering the "TriggerTest" function twice, and the array called "items" it is only traversing has stored only one element of the object type. app.component.html <h1>TESTANDO NGFOR</h1>...
asked by 29.08.2018 / 23:17
1
answer

Create angular design without using angular-cli

Good night, dear. Can anyone give me instructions (or links to articles) on how to create an angular project 4 from scratch, without using angular-cli? I'm a beginner in language and need to learn how to create an application without -cli....
asked by 09.05.2018 / 02:49
1
answer

Good practices for creating an Angular project

I am studying Angular to develop a web application, and I would like to know the best practices for creating folders, creating classes for service and other parts. I did a Google search but I did not find anything similar.     
asked by 30.05.2018 / 22:55
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
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

Angular2 - Inject Component into Body

Good afternoon! I have the following component import { Component, Input, ElementRef, HostListener, OnDestroy, OnInit } from '@angular/core'; /** * This class represents the navigation bar component. */ @Component({ moduleId: module.id...
asked by 31.01.2017 / 18:20
1
answer

What is the .component.spec file used for angular2

I'm using the angular cli in my project, and when generating a component, it automatically creates a .component.spec.ts file Can anyone tell me what this .spec file is for? Do I really need it or can I exclude it?     
asked by 22.09.2016 / 19:11
1
answer

Force update of JavaScript file version

I'm developing an application in Angular2 and I'm facing a problem that is updating the JS files. When I update the version sometimes the browser does not load the new file, it uses the old one. I know if I put the version of the file at the...
asked by 15.04.2016 / 14:41
2
answers

Request loop in AngularJS 2

I'm new to using AngularJs and decided to study based on a work project. My problem is this: I'm building a base project using AngularJs 2 to consume Wordpress ( WP ) data via WP REST API . In this API I look for a WP post (custo...
asked by 16.06.2016 / 20:37