Most voted "angularjs" questions
This tag should be used when the question refers to some resource, information or problem related to the Angularjs framework. If so, only about Angular, there is a specific tag for this. Angularjs is an open-source Javascript framework. Its purpose is to facilitate the creation of browser-based applications in the Model-View-Controller (MVC) model, reducing the amount of code needed to create functional web applications.
Learn more…2,494 questions
Sort by count of
-
1
votes1
answer441
viewsError http 419 Laravel-Cors?
To fix Cors failure in the Laravel api I used the package Laravel Cors and followed everything that was reported in readme, but now it is returning an error to me when making a request http post…
-
1
votes0
answers48
viewsCORS error when trying to authenticate an API on localhost
I am trying to access my API that is on localhost. However, when trying to access it, I come across the following error: Failed to load http://127.0.0.1:8000/api/login: The…
-
1
votes2
answers257
viewsPassing the token of an Angularjs controller to an Laravel API
I am trying to pass the token that I have my controller to authenticate into an API in Laravel. However I am encountering the error: "token_not_provided" Note: I am using the Jwtauth with Laravel…
-
1
votes1
answer56
viewsProject in Angularjs
I am trying to implement my project in Angularjs, and while loading this error: Uncaught Error: [$injector:modulerr] Failed to instantiate module myapp due to: Error: [$injector:modulerr] Failed to…
angularjsasked 6 years ago Marcelo Dutra Corrêa 11 -
1
votes0
answers22
viewsI need to save parameters in several tables
I’m returning some parameters and need to dismember these parameters saving in two tables. Follow the initial code: lamina.controller.js function salvar() { // remove a mensagem de sucesso delete…
-
1
votes0
answers73
viewshow to handle a multiple file upload request and [Object Filelist]?
I’m trying to upload multiple files, but the request is sending a string: [Object Filelist] <file class="btn btn-default" name="fotos_empreendimento" accept=".jpeg,.png,.gif"…
-
1
votes2
answers350
viewsGET request with Angularjs
Good afternoon I am trying to perform a Get request with Angularjs but I get no response and the only console.log that runs is the last one that is already outside the request;…
-
1
votes1
answer198
viewsSeparate Methods of an Angular Component 6
Hello everyone, I have a Component with 1266 lines, due to its large volume of methods, I need to separate these methods to facilitate a future maintenance, only problem in this is that I have local…
-
1
votes0
answers463
viewsAngular mask-input-masks in Angularjs
I’m trying to use the angular mask-input-masks in the Angularjs (Ionic v1) found in the link: https://assisrafael.github.io/angular-input-masks/ I follow all the steps in the documentation:…
-
1
votes0
answers49
viewsHow do I use a directive to turn my component on and off?
I am zooming in on my website. When someone clicks on the image, I will zoom in. If the user clicks again (anywhere) will close the zoom and return to the page: But I’m having some difficulties in…
-
1
votes0
answers75
viewsOwl-Carousel does not load with dynamic angular array
Guys I have a serious problem and I’ve tried everything to solve and so far nothing! I have a CMS for my site, the site has several plugins, I created an array with the images, texts, and I called…
-
1
votes0
answers245
viewsPre-select first element of the array
My select <ion-item> <ion-label floating color="primary" interface="popover">Opções de Parcelamento</ion-label> <ion-icon name="pricetags"></ion-icon> <ion-select…
-
1
votes1
answer176
viewsHow to hide a table line div
Good afternoon, I have a table where I show several values, but I have lines where sometimes I have no number and shows N.A. What I want is to delete a row from the table (div id="ApagarNA") if all…
-
1
votes1
answer89
viewsHow to apply saved CSS code within an array using Angularjs?
I am making a web game with different levels and need to change the style of a div using a code saved within an array in Angularjs. In addition, the game has a split on the screen, where in one half…
-
1
votes1
answer141
viewsEdit modal record with Angularjs
I have a modal to edit user and when you have ng-model in input it does not display the value to edit. What I might be doing wrong. $scope.updateUser = function(userId){ var id = userId;…
angularjsasked 5 years, 9 months ago Ricardo Chomicz 127 -
1
votes0
answers81
viewsSave dice and then play in BD
I have a code where I show the days of the week, so for each day of the week I have 3 shares: 1 - a select with options; 2 - a button that opens a modal to place an observation; 3 - an input…
-
1
votes0
answers15
viewsIs it possible to have a screen routing configuration for each module with Angular JS ? If possible, how to route between modules?
var app = angular.module("app", ['ngMaterial', 'ui.utils.masks', 'ngMessages', 'toastr', 'ngStorage', 'ui.router']); app.config(function ($stateProvider, $urlRouterProvider) { $stateProvider…
-
1
votes1
answer117
viewsRemove object from array
I have the following array called listDeTipoAtendimento 0: {tipoAtendimento: "ESTUDANTE", tipoServico: "ESTUDANTE", atendente: "José da Silva"} 1: {tipoAtendimento: "Gestante", tipoServico: "teste…
-
1
votes1
answer44
viewsSave an ng-repeat value and use it in another
My question is the following. First I perform a search and fill my first select with ng-repeat. So far so good, but I perform another search for a second select that depends on this my first search.…
angularjsasked 5 years, 7 months ago Andre Lacomski 307 -
1
votes0
answers20
viewsHow to aggregate in mongodb via a Repository in javascript/Node?
I have a repository that makes a query in the collection logsMonitrip. The method below is called by the service when the user tries to make a query through the company’s cnpj, after that I get the…
-
1
votes3
answers11983
viewsAccess-Control-Allow-Origin error with Xmlhttprequest()
Hello, I’m having the following mistake: No 'Access-Control-Allow-Origin' header is present on the requested Resource. Already researched and the solution I find is to add:…
-
1
votes0
answers42
viewsHttprequest using Angularjs, Nodejs and Express
I’m new to these technologies and I’m trying to make an http call (get and post) via html but it’s giving error, I’ve seen several topics here and elsewhere but I can’t make it work. Someone can…
-
1
votes0
answers179
viewsRendering Dynamic Array - Angular
I am trying to render a dynamic array in my HTML, every click on ("+") it generates a new item in Formarray. The new fields are being generated in the correct way, but when adding a file its name is…
-
1
votes1
answer191
viewsTest of default in Angulajs application using Karma and Jasmine
Hello, I have an application in Angularjs and I wanted to ensure the quality of my code by doing unit tests and I am using Karma and Jasmine for this. After having had a certain difficulty to…
-
1
votes1
answer196
viewsForce selection on ng-required combo
I have a modal where I need to force the user to select a combo option and also enter a value in the input field. I used the ng-required directive and to display the error message but still it is…
-
1
votes1
answer242
viewsAccessing data from an Angular array
I’m trying to access a data ID that my API responds that it is inside an array: { "name": <name> "email": <email> "token": <token> "message": 'Token válido.' "subscriptions": [ {…
-
1
votes1
answer77
viewsHow to sort a vector (A) according to another vertor (B) (containing repeated numbers) in javascript?
problematic: I have a table with questions, For each type of Intervention I carry certain questions. I need to show these questions on a completion screen, for this type of specific intervention.…
-
1
votes0
answers53
viewsHow to configure proxy with user and password in Ionic?
I’m trying to configure the Ionic proxy to download projects here in the company but something is wrong. In npm the proxy is set and works well (see file .npmrc):…
-
1
votes1
answer127
viewsHow to make a regex to treat the text this way?
Whereas I have random classes, may or may not have a class in the paragraph. I need to put an empty paragraph, when there is not an empty paragraph on top of the text. I can receive texts in these…
-
1
votes2
answers169
viewsCan you pass a specific route determined by an id ? (Angular Routes)
Ex : I want to register(I’m working with Tadata) My route today {path:entity/:identity/registration} Where the identity is replaced dynamically when I click, for example: in the database register…
-
1
votes2
answers120
viewsHow to do page re-load with angular according to queryparms
I have a simple input that serves as a search component, with the Submit function onSubmit() { this.submitted = true; if (!this.searchForm.valid) { this.submitted = false; } else {…
-
1
votes0
answers43
viewsAngularjs Datatable does not load table data when using a variable in a column heading
Hello, I’m using the Datatable Angularjs https://l-lin.github.io/angular-datatables/archives/#! /changeOptions. I need the title of a column to be dynamic, using a variable in it. But when I do,…
angularjsasked 4 years, 8 months ago Sérgio A. Guido 11 -
1
votes0
answers106
viewsCheck/Deselect checkboxes button
I have the check/uncheck checkbox button, it is working, but after passing through the test team, it was asked that when marking one or more checkbox with mouse, when clicked on the button it does…
-
1
votes1
answer57
viewsList the names of all objects within the array
I’m using the Angular JS chip system and I have a problem showing the name(description) of the objects inside the array. The code html that’s the one: <div layout="row" layout-xs="column">…
-
1
votes1
answer48
viewsAngularjs: Request $http to consume the domain’s external API giving error
I have an Angularjs application that logs in. I am trying after logging in, requesting an API that I am running on my machine running in C# to at least be able to communicate with it. But it made…
-
1
votes1
answer37
viewsAPI request at Angular
Next, I’m not getting a request for an api, a get. Follow the api’s code and answer. User model.: export interface ResponseUsers { data:User; } export interface User { id: number; nome: string;…
-
1
votes0
answers25
viewsRedirect problem at Angular
I’m having a problem rerouting the Angular Below is the registration-client.componentts file.: import { Component, OnInit } from '@angular/core'; import { debounceTime } from 'rxjs/operators';…
-
1
votes1
answer64
viewsif - Else if condition being ignored by browser
Guys I have the following if - Else if condition for file upload check, depending on the file it allocates at a position of the array, however when arriving the name to do the validation it ignores…
-
0
votes2
answers1487
viewsAccent + $http.get
I’m having trouble making an Ajax call using Angularjs because the strings that have accents are returning null, in response to the call, my PHP is returning a JSON json_encode($data), and upon…
-
0
votes2
answers7840
viewsHow to redirect using Angularjs
I’m using the Angularjs, and need to redirect to another page within my controller. How do I do this? Follow the code of my controller: meuController.controller('Controller', function ($scope) {…
-
0
votes1
answer400
viewsAngularjs - Http get is returning the main page html instead of json
Friends, I have a web app that works normally when installed on localhost. But when I deploy on a different server http get returns the main page html instead of returning the json. Detail this…
-
0
votes1
answer111
viewsCancel changes to Angularjs
I have the following code, to undo the changes: $pageContent = content; $scope.page = $pageContent.page; var pageBackup = $pageContent.page; $scope.cancelChanges = function() { $scope.page =…
-
0
votes1
answer1115
viewsCopy HTML and change ng-model
I have a piece of HTML that I am duplicating via HTML. Within the scope, however, ng-model is not working. HTML: <html ng-app="App" ng-controller="Theme" > <head> </head>…
-
0
votes1
answer1038
viewsHow to implement a search engine on a site that is in a Node.js environment
I made a site in the environment Node.js, using Express, template engine Jade, The problem is that the search engine (search engine) I have ready is in PHP, I do not know if I can run it in Node…
-
0
votes1
answer5562
viewsGenerate pdf with Javascript or Angularjs
Does anyone know a way to generate pdf of a page via javascript without the use of library or at most with the use of JS angular ?
-
0
votes1
answer1298
viewsGet the selected row object with ng-grid Angular-UI
I’m using ng-grid of Angular-UI and need to get the selected object when clicked on the grid line. I have the function: $scope.selectItem = function(item) { $scope.selectedItem = item; } I tried to…
-
0
votes1
answer58
viewsSave information from tabs
I have my canvas, as follows: each tab corresponds to a class, and database entity, and going in sequence there is a reference to them, ie na 02 tem referencia(fk) da 01, na 03 tem referencia(fk) 02…
-
0
votes1
answer753
viewsCan I have a single route file in Angularjs and have multiple modules?
I am interested in separating my app by module app controllers views diretivas services --modules ----principal --------controllers --------views --------service --------index.html ----cadastro…
-
0
votes1
answer738
viewsAngularjs Directive: $Scope does not update UI
Well, I’m trying to filter the books according to the area the person selects. So far so good, I can get the values of the area and the bank, but the UI does not update the listing. HTML <div…
-
0
votes1
answer675
viewsform. $setPristine() does not work + Angularjs
I am trying to do a cleaning in a form, used $setPristine() from the Angularjs... When trying to clean up a fluffy with: $scope.reset = function(){ $scope.form.$setPristine(); $scope.perfilDeAcesso…