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
-
3
votes2
answers3081
viewsHow to allow cross-origin requests?
I have an App on Swift that consumes data from an API, on Swift I had to enable on info.plist adding: <key>NSAppTransportSecurity</key> <dict>…
-
3
votes3
answers1078
viewsWhat is the best way to pass JSON per parameter in Angular JS?
I’m developing a system using angular js and php. The user inserts his Cpf and his password in a form, remembering that this user is registered in the database with his information, such as,…
-
3
votes1
answer65
viewsconvert 1 to active and 0 inactive within ng-repeat angular
I have a value of flagAtivo that is 1 for active and 0 for inactive within a ng-repeat which I display in a table, but I need this value to be Active if 1 and inactive if 0 <tbody ng-repeat="oper…
-
3
votes2
answers1048
viewsHow to understand MVC architecture at Angular 4?
I studied the Angular Js 1.x and I was able to understand perfectly where the architecture fits MVC in the framework, but I didn’t feel the same Angular 4. Yeah, I know, that’s pretty crazy, but…
-
3
votes2
answers263
viewsI’m not able to create notifications with the $cordovaLocalNotification plugin using IONIC
I tried to do based on the code of this site: https://devdactic.com/local-notifications-ionic/ But when I press the "Add notification" button this error appears: ionic.bundle.js:26771…
-
3
votes3
answers3857
viewsAngularjs take a data from the input that was filled in by a JS
Good morning, I’m beginner with Web, although I know how to program in other languages. My doubt is the following, through the via cep I got the algorithm that fills the address fields through a…
-
3
votes2
answers54
viewsAngularjs and angular 2, 4,6
I can still use the Angularjs? I want to use it for the simplest thing, example is to filter a list, and I don’t want to install npm, nodejs, angular CLI or use MVC structure for this. I can use it…
-
3
votes2
answers681
viewsHow to disable button after sending message?
I have an Ionic app that sends messages. Already helped me, here in the same forum, to make a way that does not allow the user to touch the send button, without having typed anything, so the message…
-
3
votes1
answer8960
viewsValidate CPF at Angular 5
Dear, I would like to know how I can validate CPF in angular 5, I have done several searches but so far nothing. I’ve already been able to perform the e-mail validation. Could you help me?
-
3
votes1
answer1981
viewsConsume REST service from Angular - Return JSON
I have the following angular Function consuming a service: function GetDados($scope, $http) { $http.get('http://localhost/api/v1/index.php/dados').success(function(data){ $scope.dados = data; }); }…
-
3
votes1
answer327
viewsHow to preserve an iframe cache?
When changing an angular path, I would like to preserve the cache of an iframe that has been read and rendered: $scope.loading_guten_pro = false; $scope.url_pro = '/acesso-pro'; $scope.iframePro =…
-
3
votes1
answer963
viewsUi-Routes get logged in user id
I’m using ANGULARJS/UI-ROUTES, and currently my application after logging only gets the email, I need to also come the ID of the logged-in user. The question of the routes I can, the problem is that…
angularjs angularjs-directives angularjs-scope angular-module ui-routerasked 8 years, 6 months ago Biellx 461 -
3
votes2
answers1282
viewsHow to run a Function after entering the Controller in Angularjs?
I have the following problem, I have more than one state of navigation in the angular that uses the same controller, so: .state('app.estado-navegacao-1', { url: "/estado-navegacao-1", views: {…
-
3
votes2
answers202
viewsNgshow two parameters - Angularjs
Hello all right? I hope so! I’m still kinda Noob on the angular and today I came across a doubt, I need to spend two Xpression in the ng-show of Angularjs, I need the same do the show or Hide and…
-
3
votes2
answers58
viewsHow to use jquery in an Angularjs directive?
I tried to put a function in jQuery within a directive, but it’s not working. I searched and found in several places talking about jqLite, but I could not convert jQuery to jqLite.…
-
3
votes1
answer111
viewsWhat is the difference between $Dirty vs $invalid in Angularjs? For form validations?
What is the difference between $Dirty vs $invalid in Angularjs? For form validations? For example, when the form comes empty, the $invalid is true, but $Dirty is not. What is their logic?…
angularjsasked 4 years, 1 month ago Rebeca Nonato 1,163 -
3
votes1
answer243
viewsjQuery + Angularjs + Materialize CSS error
I have the following procedure in my angular controller: $(document).ready(function(){ angular.element('.button-collapse').sideNav(); angular.element('.parallax').parallax(); }); I’m starting these…
-
3
votes1
answer1032
viewsHow to upload and download the same request using Angularjs and Web api?
I am developing a functionality that will receive a spreadsheet in format . xlsx, will perform a processing and return this sheet with the columns added, in which case I should upload a file and in…
-
3
votes1
answer3038
viewsCreate angular variable in html
Hello! I have a loop (ng-repeat) in my html file and would like to save its index in a variable to be able to pass parameter to a function. Does anyone have an idea how I can do that? Follow the…
-
3
votes1
answer3497
viewsDisplay data in modal by angular ui
Hello By clicking on the link: <a href="" class="btn btn-info btn-block" ng-click="editarCliente(cliente)"> opens a modal (bootstrap) and shall display the data contained in cliente. I’m using…
-
3
votes0
answers360
viewsHow to authenticate a javascript application (browser) in a PHP API?
Personal, I’m looking to develop a PHP API (Laravel) to consume it both on my SITE (angular) and on the mobile applications I’m still developing. However, I am having trouble implementing a secure…
-
3
votes1
answer264
viewsBest way to inherit a controller and override a Gularjs 1.5.x routine
Below is my code that implements inheritance using $controller. Is this way good? My goal is to reuse a baseController class that will have some common routines for crud controllers. Fiddle:…
angularjsasked 8 years, 2 months ago Ricardo Carvalho 455 -
3
votes1
answer430
viewsHow to perform an action whenever $uibModal is closed?
How do I perform an action whenever the $uibModal is closed? Just to facilitate my learning, when I close the modal, I want to display a message. For example: angular.module('app',…
-
3
votes1
answer984
viewsError showing/hiding Div with Angular.js
I need to hide fields using Angular JS, after clicking a button will be displayed to label down below: <script…
-
3
votes1
answer880
viewsAngularjs: how to work with file-separated controllers
I use a service to make each route make 3 http.get requests: one for the content the server will generate on a part of the page, a js file that contains your controller, and a css file. My problem…
-
3
votes2
answers268
viewsClose button in <Md-select>
I am using the material angular, and I need a close button when I select the select, it only closes the box if you click outside, below has an example: HTML: <div ng-controller="MyCtrl" layout…
-
3
votes1
answer1205
viewsHow to leave a fixed div accompanying the scroll?
I’m using AngularJs and Angular Material and I need to make a div stay fixed but I have no idea how to do, my structure is as follows: <div class="page"> <md-toolbar layout="row">…
-
3
votes1
answer589
viewsCreate a multiple filter with only one input
On my system, I created a directive that gets the parameters needed to update a table, which would be this: function filtroAngularTable() { return { restrict: 'E', scope: { lista: '=', config: '='…
-
3
votes1
answer320
viewsangular - Update radiobutton values with textarea
Through Pover I want to remain the values of the radiobutton, who should come to a preference textbox per line, so when the user wants to add options just insert a new value in the next line.…
-
3
votes1
answer368
viewsGET function in ng-click
I need to call a function GET through ng-click to popular a table and the function without using service works, but the function using service does not work. Controller: Works…
angularjsasked 8 years ago Fernando Zabin 707 -
3
votes1
answer874
viewsAscending and descending order Angularjs
I have a set of data that I organize through a choice, increasing or decreasing, or I can leave in the order that is already. The system works normally with the order of the elements, the problem is…
-
3
votes1
answer77
viewsDouble Binding is not working with Angularjs
<div ng-controller="TestController"> <div class="col-md-6 col-md-offset-2"> <table class="table table-bordered"> <tr ng-repeat="column in columns track by $index" >…
-
3
votes2
answers683
viewsTransferring values from one page to another with Angularjs
Good afternoon, I was wondering if there was a way to pass the data from one page to the other... I made a small function that when you press the button it changes the name, only it appears on one…
-
3
votes1
answer39
viewsDoughnut Kind chart with multiple series
I am using Angular Charts to plot a Doughnut chart; my code is structured as follows: $scope.data = [ ['abc', 'def'], ['fgh', 'ijk'], ]; $scope.labels = ['Ask', 'Bid']; $socpe.series = ['Volume…
-
3
votes2
answers545
viewsHow to update $Scope.items after push run?
Javascript: var app = angular.module('app', []); app.controller('controlador', function($scope, $http) { $scope.user = {}; $scope.items = []; var sum = 1; $scope.submitForm = function() { $http({…
-
3
votes1
answer787
viewsHow to update fields in Angularjs?
When inserting items in the list using the following code snippet: $scope.items.push({ codigo: $scope.s.codigo, ncm: $scope.s.ncm, descricao: $scope.s.descricao, preco: $scope.s.preco, quantidade:…
-
3
votes2
answers514
viewsTake value from within a function
I have a logic problem here, I think it must be a very "dumb" thing on my part, like, I have to take a value from inside the function, and I’m not getting with a Return because it’s an http request.…
-
3
votes2
answers1007
viewsBlade and Angular JS Incompatibility in Laravel 5
I’m having trouble using Angularjs along with Laravel’s Blade. After researching this site myself, I discovered that to resolve the conflict with Laravel the latest method is using the @{{}} in the…
-
3
votes1
answer631
viewsImage inside an SVG
I’m using a svg, and inside it I put an image I get from a variable by Angularjs. So far so good, the image appears normally, but I want to leave it at width 100%. I’ve tried everything and it…
-
3
votes3
answers1169
viewsMap with dynamic size at div height
I have a map, and I need it to occupy the height of the div, so if I change the resolution and the div lowers the height, it will be in the dynamic position. If it is an angular solution, it would…
-
3
votes1
answer1592
viewsChange order of objects in the array by dragging rows from the JS angular table
I have a table and using jquery ( sortable ), I’d like when you drag the line by modifying the html of the table, the order of the array change Example: CAMPO1 CAMPO2 /// DRAG THIS ONE DOWN CAMPO3…
-
3
votes0
answers2186
viewsCreating background services in Ionic with Cordova or java
I have an application that I started to do with Ionic. A priori will be compiled only for android. In this application the user will perform some registrations, which will be saved locally and every…
-
3
votes2
answers1323
viewsSort items with angular
I am working on a system that requires data pagination, but before I would like to sort the json I receive in the order of users' names. JSON is in format:…
-
3
votes2
answers9898
viewsError "Content-Type is not allowed by Access-Control-Allow-Headers in preflight Response"
I’m making my api, in php, and I get the following warning Xmlhttprequest cannot load http://vigilantescomunitarios.com/serviapp/api_gustavo/register.php. Request header field Content-Type is not…
-
3
votes1
answer75
viewsWhat is the difference between $Animate and ngAnimate?
At Angular 1, we have a service called $animate. This comes by default in Angular. But we also have a library, which is optionally added to the project, called ngAnimate. This is intended to add…
angularjsasked 7 years, 6 months ago Wallace Maxters 102,340 -
3
votes1
answer77
viewsDoubt about services Angularjs
A tip please if I have a service ServiceY and this service has an attribute ServiceY.nome. On the same screen I have four controller, being: controller_A, controller_B, controller_C and controller_D…
-
3
votes0
answers291
viewsFacebook login with Ionic
I’m trying to develop an application with Ionic that integrates with facebook, however I’m having some problems. I have seen similar discussions but no answer or solution. The problem is this: I…
-
3
votes3
answers527
viewsProblem with URL in Angularjs
I have a system running locally, done in Spring boot Java on the back end and Angular on the front end. But I have a problem occurring in front-end which is as follows: When I lift my app and access…
-
3
votes2
answers501
viewsHow to traverse a hierarchical tree to generate an HTML
I’m having trouble generating a function responsible for traversing and returning a hierarchical tree. Follow code Javasript/JSON: let tree = { label: 'Elemento A', itens: [ { label: 'Elemento A1',…
-
3
votes1
answer699
viewsForm validation in select with angular
How the select is validated using the ng-required="true"? For input I’m putting like this: <form name="tarefasForm"> <input type="text" ng-model="tarefa.solicitante" ng-required="true"…