Most voted "angular" questions
Angular is a framework created by Google for the development of web applications. Use this tag for questions about syntax, errors, doubts, among others. Not specific to a version. For Angularjs-related issues (1.X) use the Angularjs tag.
Learn more…2,063 questions
Sort by count of
-
0
votes1
answer56
viewsHow to remove screen header on some routes
Good morning guys, in my angular project 4 I completed the Adm screen and I wish the header did not appear in it, I know I could do this with ngIf but I’m lost >_>, Can someone give a light?…
-
0
votes0
answers118
viewsAccess to Wordpress API http-headers using Angular 2
I’m having a very simple doubt on Angular 2. I have an application that connects with Rest API of Wordpress and I’m having a problem that I imagine is very simple, but I’m not finding on the web a…
-
0
votes1
answer252
viewsPass parameters between screens [ionic2 / angular2]
How to pass a parameter (id) between screens? I tried Navparams, but I couldn’t do what I wanted. I would like to place the ID on the ion-item and when I click it send the id to another screen.…
-
0
votes1
answer139
viewsAngular 2 has the possibility to make a string be interpreted as html?
I have a variable called "link_youtube", which contains a data similar to this: <iframe width="640" height="360" src="https://www.youtube.com/embed/eNs5g-c1Qno?list=RDeNs5g-c1Qno" frameborder="0"…
-
0
votes2
answers36
viewsRunning Angullar 2 on http-server
I have an application in Angular2 and was generated /dist where it contains the HTML, CSS and Javascript code executed the code using http-server and Tomcat. My problem is when I turn my routes,…
angularasked 7 years, 2 months ago Victor César 149 -
0
votes0
answers43
viewsI emulated my project IONIC 2 on android and it from ERRO
I emulated my project IONIC 2 on android and got the white screen and appeared the following ERROR: EXCEPTION: Error in ./MyApp class MyApp - inline template:16:2 caused by: Connection is not…
-
0
votes1
answer154
viewsAngular Error 2 Router ( Cannot find Primary outlet to load 'Welcomecomponent' )
Good morning, I have the following error in my ANGULAR-2 application EXCEPTION: Uncaught (in Omise): Error: Cannot find Primary outlet to load 'Welcomecomponent'…
-
0
votes1
answer140
viewsData disappears when clicking the back button
I have an application in Angular 2 where I have some data entry screens (inputs). When the user enters the Iprs and clicks to advance, when clicking the Back button, the information disappears. I…
-
0
votes1
answer233
viewsSave token coming in Api Sponse
I am trying to save the token that my server sends in each request. Although "Authorization" appears to be present in Sponse, I cannot print the value. The code is: What returns from the server:…
-
0
votes1
answer508
viewsIncrement object property within an array
I do not know what is the best way to implement this, I am trying with switch without success... By clicking the button, I want to increment the property "Qtd"; choice=[…
-
0
votes1
answer113
viewsHow do I add an animation while loading an Angular 4 request?
My service is like this: export class ServicoService { constructor(private http:Http) { } public listar() { return this.http.get('aqui a url') .toPromise() .then(response => response.json()); } }…
-
0
votes0
answers108
viewsE-mail cangularjs 2 + Php
I’m trying to send email but I’m not getting. My php class require("phpmailer/class.phpmailer.php"); $mail = new PHPMailer(); $mail->SetLanguage("br", "libs/"); // ajusto a lingua a ser…
-
0
votes1
answer522
viewsAngular 2 - Component Creation (Tags)
How do I create components in Angular? I want my team to put an Ex TAG: <campoBusca></campoBusca> and on the screen is already printed a input all straight, with the Divs necessary, etc!…
-
0
votes1
answer208
viewsError 404 when loading resources from node_modules folder with Angular2
I am with an application using angular 4 that is giving error 404 when trying to load resources css, fonts and javascript folder node_modules. It’s like this on my index.html: <link…
-
0
votes1
answer69
viewsThe oauth_consumer_key parameter is missing
did the site installation of wordpress I have my api working locally. I’m in the wrong: polyfills.js:3 GET…
-
0
votes1
answer39
viewsInclude components in different parts of the page
Suppose I have the following structure: <table> <tbody> </tbody> </table> <form> </form> The pages that inherit this template will define which rows and columns…
-
0
votes1
answer359
viewsfirebase.auth(). currentUser returns null when reloading the page
I’m developing an application with angular2 + angularfire2 + firebase, I am facing difficulties in implementing authentication, I was able to login and logout, but when the page is reloaded I lose…
-
0
votes0
answers477
viewsCatch Hours by Datetime - Ionic 3
I need to do a project for my school and do not know how to pick, by ion-datetime (Ionic 3), the value of the times that the user select. Could someone help me?
-
0
votes0
answers48
viewsUI framework that doesn’t conflict with Angular 2+?
I’m using Angular 4, I like it a lot, but I saw that the Angular documentation suggests using CSS by components, correct? I found it a little uncomfortable practice and I’m preferring to use it by…
angularasked 7 years, 1 month ago gabrielgrs 457 -
0
votes2
answers4281
viewsChange the value of a variable through another component [ANGULAR 2]
I have a boolean variable declared inside a window component, this variable serves to print/hide a link that is in the header. I want to,change the value of that variable from a second component, in…
-
0
votes1
answer2019
viewsFormat date with Angular Datepipe
I have a date in timestamp format and wanted to format for text in Portuguese, for example: "Wednesday, October 18th, 2017", but I put the pipe "| date:'fullDate'" and it doesn’t work. When I take…
-
0
votes0
answers178
viewsTarget Problem of Angular Components 2 with importing external Javascripts
I have a problem and I believe it is related to the scope of Components in Angular 2. First of all, I would like to comment on the division of the project. It is divided into five components, the…
-
0
votes2
answers3010
viewsHow to change pages on Ionic V2
Good morning, you guys, I have a question, of beginner, that I created two pages in Ionic v2 but I do not know how to navigate between one and the other. Looking at the documentation of Ionic I saw…
-
0
votes2
answers1455
viewsWhat is the difference between Angular 2 and Angular 4?
Would you like to know in a simplified way, what are the differences between Angular 2 and Angular 4? And if possible, indications on the study materials of the two.
angularasked 7 years, 1 month ago Thiago Slomski 19 -
0
votes1
answer2461
viewsAngular 4 - Perform function only when variable is changed
I need to execute a function, but it can only run if the variable is false. What context: When pressing TAB the system calls the function (fnTab). This function performs a search in the database and…
-
0
votes0
answers29
viewsCreate a package from another
I installed an npm package, but it offered almost everything I needed, but I still had to do some customizations. The problem is that, as a team working and we have the whole issue of versioning and…
-
0
votes1
answer297
viewsIonic - request api php
Guys I’m trying to make a request will post on a php api, it returns me Undefined. My predecessor: import { Injectable } from '@angular/core'; import { Http } from '@angular/http'; import…
-
0
votes0
answers115
viewsIonic 2 network.type = null
I am developing an application in Ionic 2 ts, but when I try to check if it is connected on the internet it returns null. My code import { Network } from '@ionic-native/network'; @Component({…
-
0
votes1
answer203
viewsSPA and MPA in Angular
I didn’t find many about creating angular MPA, I only find SPA articles. someone could refer me articles or link’s to study, I am grateful!
-
0
votes1
answer900
viewsUpdate Angular Component 4?
Good morning! In short, I have a Navbar component and it has an if that if you are logged in appears some items and if you are not, others appear. It works, the problem is that to validate the…
-
0
votes1
answer401
viewsError trying to run the app with Ionic serves
When trying to run the app with Ionic serves this giving the following error: > ionic-hello-world@ ionic:serve D:\www\mobile\app > ionic-app-scripts serve "--v2" "undefined" "--address"…
-
0
votes0
answers29
viewsUpdate the application database
I’m a beginner in app programming. I’m developing an ionic 2 with the angular 2. A doubt has arisen, I have a provider and in it I do all part of the database using the SQLite, just that there was a…
-
0
votes1
answer571
viewsHow to use Base64 image in Angular 2?
I am consuming the service of a json through Angular 2. And within an ngFor with my let professor of professores, has a line where I consume this image of type Base64: <div class="foto-card"…
-
0
votes2
answers96
viewsHow to listen to a request at Angular 4
I’m making an HTTP request in Angular 4, but I need to listen to it and show it in the template in real time, that is to say, as long as the information is automatically registered in the grid.…
-
0
votes1
answer389
viewsDisable Validators.Required Angular2
I have the following form using Validators. this.formulario = new FormGroup({ CodigoTemp: new FormControl(null, [Validators.required]), }); I need to disable Validators.Required if a checkbox is…
-
0
votes0
answers99
viewsWhy is it necessary to use "result as T" in the return of a generic method?
Consider the following method: private handleError<T> (operation = 'operation', result?: T) { return (error: any): Observable<T> => { this.log(`${operation} failed:…
-
0
votes2
answers137
viewsAngular 4 - Input / Output Access parent event via Typescript
At Angular 4, how do I access the functions of the parent being in the child or the functions of the child being in the direct parent by Typescript instead of traditionally accessing via tag…
-
0
votes1
answer46
viewsShow Page 2 event value in a Page 1 input
I have two pages and I want the value of an event (script below) of Page 2 to be shown in an input of Page 1. HTML of Page 1: <ion-list> <ion-item text-center> <ion-input type="text"…
-
0
votes1
answer3872
viewsImporting an existing project with angular-cli
Hello, I downloaded an angular 4 project with css bootstrap, now I would like to work on this project, making some changes for study effect. It turns out that I don’t know how to import an existing…
-
0
votes2
answers2556
viewsHow to print the error message in Angular?
I am new as Angular programmer, I have been studying for a little while and I really need help to solve a problem in my Spring Boot project with Angular. I’m looking to print the Java API message on…
-
0
votes1
answer33
viewsHow to use items of various components in only one at angular4
I have a template that forms a registration form, it is separated into three "User, Note, Address" Components the three are being rendered, but I cannot access their content when submitting the…
-
0
votes1
answer258
views"Maximum call stack size exceeded" error when instantiating object
I have the following classes in an Ionic 2 app export class JobIteractionsModel { public _idJob: number; get idJob() { return this._idJob } set idJob(idJob: number) { this._idJob = idJob } public…
-
0
votes1
answer162
viewsRemove command not working Ionic
I’m having trouble with the navCtrl.push. The flow is as follows: On the pages 1.1, 1.2 e 1.3 I can go back and forth as many times as I want but when I click the back button I need to return to…
-
0
votes0
answers52
viewsng is used to load when it reaches 70% on Ubuntu
I am trying to run my angular application 2, but while executing the command ng serves it carries only up to 70%. Take this message back: "70% building modules 748/748 modules 0 active" I’ve already…
-
0
votes0
answers95
viewsError deploying Ionic 3
I’m trying to deploy in my app but this giving the image error, a blank project managed to deploy, more when I edit the screens of the app happens this error, so far I did nothing much, I only…
-
0
votes0
answers56
viewsHTTP request error in Chrome and works on Edge and Firefox
I’m having a problem making an HTTP request with Angular 4, Edge and Firefox works without any problem, but in Chrome gives error in Post, Options passes quietly but the Post does not pass, in the…
-
0
votes1
answer377
viewsHow to organize my models in an Angular Cli project?
I wonder if it is possible and also if it is a good practice to organize my templates outside of a component directory. For example: I would like to keep my templates inside a directory called…
-
0
votes1
answer201
viewsHow to work with arrays at Angular 5
I’m taking the list like this: listarTodosEstados() { return this.http.get<any[]>(`${this.estadosUrl}`); } This is my Component: pesquisarEstados() { this.cidadesService.listarTodosEstados()…
-
0
votes1
answer703
viewsProblems with IONIC 2 in various aspects
The big question is: What happened to IONIC after the updates. A few months ago I started a project with IONIC 2 for a client. Due to some setbacks of mine and also on the part of the client, the…
-
0
votes0
answers372
viewsAngular how to load a list first of all
I would like some help if someone has already used this component: Ng2tablemodule } from 'ng2-table/ng2-table'; what happens, I’m trying to come up with the filled-in list right away, but it’s not…
angularasked 6 years, 9 months ago Ederson Coelho 143