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
-
1
votes1
answer33
viewsProvider to intercept click buttons
The project I am developing is composed of many forms with several buttons. What I need to develop is a way to catch double clicks and unnecessary requests for the API. So I developed a directive…
-
1
votes0
answers16
viewsAccess to directives of a component
How can I have access to the directives that are being applied to my component? I have my component ButtonSidenavComponent: import { ActivatedRoute } from '@angular/router'; import { Component,…
-
1
votes1
answer29
viewsAccess an accordion variable from a child component to the parent
I need to access from a child component the accordion expander that lies in the parent component, its name is isExpandend On the child component, when clicking the save button, it should include a…
-
0
votes1
answer831
viewsCommunication between angular components 2
I have the following code in a component: import {Component, ElementRef, FORM_DIRECTIVES} from 'angular2/angular2'; @Component({ selector: 'datepicker', templateUrl:…
angularasked 9 years ago Emir Marques 3,586 -
0
votes1
answer1244
viewsNew Project - Using Angular 1.x or Angular2 + sparkjava + material design
I would like to use the angular2-material but not yet left, I can not postpone the project so I have to choose, duration of the project some 2 years so stay the next 2 years at angular 1.x or use…
-
0
votes0
answers109
viewsAngular2 Send and receive information
Good people I’m learning to use the Angular 2 but I have a doubt. I’ve been looking on the Internet and I was told that it would be good to create a server NodeJs to receive and send data to the…
-
0
votes0
answers104
viewsEnable CORS in the request header
someone knows if they can enable CORS in the ajax request header without having to do anything on the API server, similar to what POSTMAN does. With POSTMAN as you test the API and it works right…
-
0
votes1
answer1462
views*ngFor with angular2
I would like to create a loop of repetition, but in this loop I already have the amount of times it will perform. Below is an example of the expected result using javascript. for(i = 0; i < 5;…
-
0
votes1
answer2343
viewsHow to update the view after database change with IONIC 2
I am developing an application with IONIC 2 where I consume a REST webservice from an application that is running online. When opening the page, I request and display the information correctly on…
-
0
votes1
answer201
viewsLightbox in Angularjs 2
I’m still very inexperienced with Angularjs and so I stick to simple things. I need to use the Lightbox on a project. "Googlando" around, I found the angular-bootstrap-lightbox, but then I came…
-
0
votes2
answers615
viewsError and Mysql: [ngRepeat:dupes] Duplicates in a Repeater are
I’m developing an example with IONIC but it’s giving the error: ionic.bundle.js:19387 Error: [ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique…
-
0
votes0
answers172
viewsError trying to run official Angular2 Quickstart example
I am starting a project to study Angular2, and for that I am using Debian 8 with Node V6.3.1 (npm v3.10.3). Following the step by step official Angular2 Quickstart: #git clone…
angularasked 8 years, 3 months ago Allan Andrade 6,409 -
0
votes2
answers713
viewsProblem leaving active link - Angular Routes 2
I’m having trouble adding the class to my active page link. It works on all pages, but the index is always active. For example: if I am on the application page, the two links are active. Menu:…
-
0
votes1
answer977
viewsCannot find module 'reflect-Metadata'
When will I install angular 2 using: ng new angular-teste I get the error: Cannot find module 'reflect-Metadata' What can it be?…
-
0
votes1
answer100
viewsAngular 2 at Visual Studio 2015
I have been working on a project that uses Ionic Framework and Angularjs for mobile and use Visual Studio 2015 "Tools for Cordova" to build and debug the project. Recently, Angular 2 and Ionic 2…
-
0
votes0
answers63
viewsAngular routing 2 and Laravel 5.3
I created an initial system (crú) of Laravel 5.3 and managed to implement angular 2.0... put to view the app.Component in Welcome.Blade and it worked normal... I have doubts about how to routing…
-
0
votes1
answer701
viewsUsing two *ngFor at the same time in the Ionic2-framework
I am trying to use 2 *ngFor on the same ion-Row. I first tried it as follows: <ion-row *ngFor="let mes of meses" *ngFor="let por of arrayPorc"> <ion-col width-25>{{mes}}</ion-col>…
-
0
votes0
answers34
viewsMy description of the top line is not showing!
<md-card ng-repeat="classified in classifieds "flex="30"> <!-- cada cartão ocupará 1/3 da página(33) --> <img ng-src="{{classified.image}}" alt=""> <md-card-content> <div…
-
0
votes1
answer527
viewsRequest HTTP Ionic 2 GET
Good afternoon guys, use Ionic 2 and how can I make a request get (without Provider nd only in class ts)? I just need you to take what’s written on the page and display on an Alert. How can I do…
-
0
votes1
answer256
viewsMaterialize and Slider in Angular2
all right? Now the question is for those who are used to using materialize, more precisely the Slider component that has in the Javascript/Media menu. It does not start. I installed the…
-
0
votes1
answer108
viewsIs it worth starting medium and large size projects with angular 2?
how is the experience with using angular 2 for slightly larger projects? Any negative or positive point found in relation to its use? I want to take stock if it’s worth changing for him.…
angularasked 7 years, 11 months ago Weliton de Resende 3 -
0
votes1
answer351
viewsShow no 401 (Unauthorized) error on console
I created a api using the passport do laravel 5.3. It works as follows: O angular 2 send credentials to the laravel, the verification and the laravel returns a token. It’s all working round.…
-
0
votes1
answer618
viewsProblem with ngModel at Angular 2
I’m trying to get the values of 3 inputs that are in a modal of Ionic 2 but it gives this error: Error in ./ModalPage class ModalPage - caused by: Cannot read property 'name' of undefined My input…
angularasked 7 years, 10 months ago Altemberg Andrade 633 -
0
votes1
answer81
viewsAngular forms 2
I have a screen called login on the same screen I have two Forms one with user and password and another only with email field. In the first form I have this snippet of code: <a href="#"…
angularasked 7 years, 10 months ago Douglas William 321 -
0
votes0
answers76
viewsDirect from one view to another by using ng-click on Ionic
Good morning, I would like to know how to redirect this view when I click to go to each of the menu options. Notas Personalizadas {{note.title}}…
-
0
votes1
answer52
viewsUse received variable via angular route 2 final releasee
I’m starting to learn angular 2 and I’m having a question of how to use variable within a component (AppComponent.ts), received via service. I sent via served the id of a register and get in the…
-
0
votes0
answers430
viewsIonic2 - Download Images and Save to Gallery
You guys, simple doubt for you How do I download an image that be in a server and then save them in the device Gallery (IOS and Android). PS: I’m using Ionic 2 From now on I thank you all…
-
0
votes1
answer111
viewsProblems with angular heading 2 and Laravel 5
I have a system in Laravel 5.3, and I’m putting in Angular 2 to take care of the front end. I have several modules, ex: companies. The route /companies will lead to the listing of companies thus…
-
0
votes1
answer169
viewsIonic 2 http request error
I need to request a webserver in Ionic 2 and I have the following code : constructor(private navController: NavController, public http: Http) { var url = 'http://localhost/APIPortManager/teste.php';…
-
0
votes1
answer108
viewsParallelism with Angular 2
I need to insert 30,000 records into the device (in Sqlite) through a file. But at the time of insertion, the application hangs. So I thought about creating an asynchronous service, but I don’t know…
-
0
votes1
answer1176
viewsDatatable with pagination server side
I searched a lot on Google but I did not have a clear path of how to make a datatable ( angular use 2 ) that contains pagination by the server, or seka, that each page he made an individual request…
-
0
votes2
answers277
viewsPopulating a select with Angular2 and Firebase
blz? I’m starting in Angular2 and I’m finding Firebase a much better backend than Backand, because in a very short time I was able to connect to Firebase. The point now is, I’m trying to popular a…
-
0
votes3
answers485
viewsRouting problem after final build in angular 2
After generating a final build in angular 2 ng build --prod I was able to put it on any server (Nginx/Tomcat/others...) normally, the problem happens that the routing does not work using the tag…
-
0
votes3
answers1516
viewsAngular installation 2
I have a website ready, it is static. I would like to install Angular 2 on it. I installed the angle from the command npm install @angular/cli and tried to put the html, css, jquery files in it but…
angularasked 7 years, 8 months ago Junior Vilas Boas 353 -
0
votes1
answer293
viewsFirebase and Angular2
all right? I don’t know what’s left to get the answer from Firebase using Angular2. I followed a tutorial that worked, but when trying in my project, I get 'null'. I don’t know if I use…
-
0
votes1
answer961
viewsFailed to run Ionic server
Good afternoon, I’m trying to run Ionic right after creating the project without even touching anything and always comes the same flaw. I no longer know what to try. When I run the command "Ionic…
javascript node.js apache-cordova ionic2 angularasked 7 years, 7 months ago Marcos Rai Alves da Cunha 372 -
0
votes0
answers45
viewsPipe error: Type Paginatepipe is part of the declarations of 2 modules
I have the following error in my template: Type Paginatepipe is part of the declarations of 2 modules: I’m doing the import pipe PaginatePipe in 2 modules, which I thought would work normally, but…
-
0
votes0
answers39
viewsHow to work with a sensitive variable at the angle
I have big problems, I have several computers where each one consumes a variable but their data is different, to exemplify: I have app.js file where there is a route to access my api, in development…
-
0
votes1
answer241
viewsWhat is the best way to integrate Laravel with angular 2?
I know how to create an application using Laravel, and I also know how to create an application using Angular 2/4. But how to integrate the 2 ? would be just creating an Laravel API and another…
-
0
votes2
answers503
viewsionic2 - photo upload via server
Following guys. I have an application in Ionic 2. The action is simple: take a photo or select a photo from the gallery. So far so good. however, at the time of uploading, it will go on the server,…
-
0
votes0
answers1022
viewsIonic 2 - How do I get back to the homepage of a particular tab
My APP works with tabs, within those tabs I have buttons that open other pages using the push, when I click on tab 2, and I click on a button, it opens the normal page, then I click on tab 1, and…
-
0
votes1
answer115
viewsuse variable to call ngFor in Ionic2
I have a variable that I display on the screen of my app called {{data.}}. In the example code: <ion-item *ngFor="let cardapiohotrod of cardapiohotrod |…
-
0
votes1
answer766
viewsDynamic routes with angular 2
I am developing an angular2 application and wanted to create dynamic routes, which would be generated from a .json.file. Searching I found the following code: import { Routes ,RouterModule } from…
-
0
votes0
answers428
viewsSearchbar Ionic 2
I managed to implement the searchbar as documented by IONIC 2. The problem is I’m bringing information from a remote database and I can’t implement this database data into searchbar. It is a matter…
-
0
votes1
answer1226
viewsHow to create an object and fill with data returned from Firebse?
Gist Referring to the question I have an Event class, and a method q is called snapdbEvents(), but when I put the object inside and try to define the values of the variables in the object occurs the…
-
0
votes1
answer190
viewsError using proper Ionic 2 css
Css example: .ion-content { background-color: #000000; } home ts. import { Component } from '@angular/core'; import { NavController, ViewController } from 'ionic-angular'; import { HomeService }…
-
0
votes1
answer320
viewsClass at Angular 2
This is my class at 2 export class LinhaModel { _id: string; Cidade: { id: string; CidadeNome: string; } Operador: { id: string, OperadorNome: string, } DiaOperacional: { id: string,…
-
0
votes2
answers191
viewsHow to pass Property-bind to router-outlet at angular 2
Hi, guys. I’m new to learning Angular 2 and I have this title question. My router-outlet: <router-outlet [busca]="termo"></router-outlet> with this Property-bind and returns me this…
-
0
votes1
answer83
views$watch in Typescript
I need that after I start the application it runs a set of functions every 20 seconds or each time q a json is updated,in angular 1 had the $watch that could be used for such functionality,in…
-
0
votes1
answer786
viewsAngular 2 in production
Eai guys,I have an application in Angular 2 that I want to publish it on the site www.umbler.com hosting server but do not consig, have put on the server in Nodejs but does not work. I don’t know…