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
-
2
votes3
answers117
viewsFunction on the hyperlink
I am running a function on the hyperlinks of my system, as shown in the code below: <md-menu-item ng-repeat="insumo in insumos"> <a href ng-click="verificar('mostrarInsumos',…
-
2
votes2
answers773
viewsNg-repeat with div
I have a list of information. I need you to show 4 records per line, I tried several ways, but I couldn’t. It shows all the records in one line. <div flex layout="row" flex="100"> <div…
-
2
votes0
answers25
viewsRender a directive
I have a directive that when I load the page it is rendered, the content of this directive will undergo some changes during use. I wanted a way that by pressing a button to reload this directive to…
-
2
votes2
answers3898
viewsHow to make a date field containing only Month and Year Html
I need a date field containing only Month and Year Html preference that enables on the screen something like a calendar containing only months and years. Obs: I’m using Angularjs, javascript…
-
2
votes1
answer699
viewsHow to format date for dd/mm/yyyy hh:mm using Javascript?
The date I have this way: "Fri Sep 22 2017 14:42:35 GMT-0300" I need to format it to the following format: dd/mm/yyyy hh:mm How could I do this using Javascript or Angular?…
-
2
votes1
answer592
viewsSelect component disabled and selected angular value
I have the following situation I have a municipality select component <div class="form-group col-md-4"> <label>Entidade:</label> <select ng-model="distrito.entidade.idEntidade"…
-
2
votes0
answers38
viewsEdit text from Toasts
I’m doing a Web Site in angular, I won’t be able to use third party components, but I need to make the Web Site open allow me to update your text in the view. Obs. I don’t have the code yet, but I…
-
2
votes0
answers441
viewsCache - Angularjs
I have an Angularjs(1.x.x)/php application that every version update, some users who use Firefox in the latest version, are required to run CTRL+SHIFT+R to clear the cache and get the updated…
-
2
votes1
answer692
viewsCommunication between two Angularjs controllers
I have an object I’d like to share with others Controllers, thought of two ways, the first would be to use $rootScope and in the other use a Service. I chose the second way and created the following…
angularjsasked 8 years, 9 months ago DiegoAugusto 8,694 -
2
votes2
answers356
viewsTake any variable from an array that has a certain id in Angularjs
With the following code, I am saying that in the second array contained in the object $scope.listademercadoria there is the property "quantity", and I am declaring it as value 0.…
-
2
votes1
answer75
viewsNg-repeat passing a number
I want to mount a select whose options will be generated by an ng-repeat, but for this I want to pass a number, for example if I pass the number 5 in the variable will be mounted 5 options with…
-
2
votes1
answer841
viewsConverting Boolean to YES or NO to Angularjs
I have the following table structure in my form HTML: <tbody> <tr nr-repeat="p in model.previdencias"> <td>{{p.NomeDependente}}</td> <td>{{p.IsAtivo}}</td>…
-
2
votes3
answers1243
viewsHow to select the content of an input in ng-Focus?
In an input I have a method that selects the content of the field when clicking on it. <input ng-click="selecionaTudo($event)"> That’s the job of: $scope.selecionaTudo= function($event){…
-
2
votes1
answer930
viewsUse variable with site address in HTML - Angular
Hello, I’m developing an angular site, only I’m having difficulties using the variable baseurl, which contains the base path of the site, in some things like links I can use, but within a…
-
2
votes3
answers2702
viewsDynamically populated option select list selected with Angularjs
I need to bring one select option with the selected option being filled dynamically. I have in my controller the filling of the list so: $scope.$watch('IdCategoria', function() {…
-
2
votes2
answers257
viewsAngular filter html
I have an ng-repeat that returns me a list. Every line, I have a default text that arises if a variable is > 0 So far everything is working. How do I add to filter only show the record when the…
-
2
votes1
answer1888
viewsHow to insert an Angular directive into HTML using an external script?
I need to insert a directive within the code of a calendar that is already implemented on a site I’m creating, but I found a problem: in HTML, the directive is printed normally, but Angular does not…
-
2
votes2
answers490
viewsHow to use anchor in Angularjs?
I am starting to work with Angularjs and I have the following situation I have a href that redirects to a div inside the page itself by the id of the div: <a href="#teste"></a> <div…
-
2
votes2
answers895
viewsSort by date how much they are of the string type
i am developing an application in Engineering which receives the following object from an API: pessoas = [ { nome: 'Lucas', data: '2010-Fev-04'}, { nome: 'Felipe', data: '1994-Dec-10'}, { nome:…
-
2
votes1
answer203
viewsui-router does not render the view contained in an ng-template
I’m taking an online course on Maean and I’m having trouble rendering a view. To view is inserted inside a tag Script and specified as a ng-template and configured within the ui-router. Even…
-
2
votes1
answer60
viewsBanner Rotary
Hello, use Angularjs and wanted to put it to change the slides from 10 in 10 sec. I’ve tried a few codes and I couldn’t. Anybody got a tip? Here comes my controller. (function () { 'use strict';…
.net angularjs angularjs-directives angularjs-scope angular-moduleasked 8 years, 6 months ago Biellx 461 -
2
votes1
answer126
viewsJavascript and Angularjs - Good practices for capturing data from a logged-in user
Gentlemen, good afternoon, sir. I would like to ask what best practice you use to capture the data of a logged-in user in a web application with database. For example: Assuming I created a site…
-
2
votes1
answer1569
viewsGenerate graphics with Chartjs and Angularjs
I have a problem generating graphics using Chartjs and Angularjs. When loading the data from an X api I receive an array of objects that contains the data needed to generate a series of graphs below…
-
2
votes1
answer2757
viewsRead JSON and print to html with Angularjs
I am trying to print the data of a JSON file in html using Angularjs, running everything through XAMPP and in my htdocs/test folder there are 3 files (index.html, main.js, test.json). The console…
-
2
votes1
answer660
viewsUi-route More than one view
Hello, I work with angular, and I’m using UI-ROUTE I’m trying to put two views on the same page and n with you. Here’s how I want the views to appear: When I click on "My registration data" it is…
angularjs angularjs-directives angularjs-scope angular-routes ui-routerasked 8 years, 5 months ago Biellx 461 -
2
votes1
answer817
viewsSave Rest entity using @oneToMany
I have the following entities generated by jHipster using java with oneToMany relationship: Product @Entity @Table(name = "produto") public class Produto implements Serializable { private static…
-
2
votes3
answers2679
viewsApply mask to an HTML table column with Angular?
How to put CPF mask in a table ? For inputs I used the ui-Cpf-Mask directive, but need to put in a table cell. code: <tr *ngFor="let user of users | async"> <td>{{user.nome}}</td>…
-
2
votes1
answer898
viewsng-options "Selected" does not work
I am using the ng-options function and it is listing correctly, only it is not showing the value marked as default: selected Code: <select class="form-control"…
-
2
votes2
answers608
viewsTake the smallest value of an object array
I have this array of objects, how can I make to return the object with the lowest value in currentTasks "programmers":[ { "id": 1, "name": "Eduardo Candido", "currentTasks": 1 }, { "id":2, "name":…
-
2
votes1
answer661
viewsAngularjs - multiple tabs in the same browser
I am using Angularjs in my Node application. When I try to open another Tab also with my application in the same browser ( or open another instance of the same browser ) I get this error: s:1…
-
2
votes1
answer27
viewsError reading Localstorage array
Hello, I have an array and the user can shuffle the order of the items: Blusas = ['verde','azul','amarela','rosa','laranja','preta','roxa','vermelha',] After shuffling, this is the update capture…
-
2
votes1
answer1974
viewsSuccess message, Javascript and Angular
I’m making an application where I register a new company, I’m starting in java script and I’m also using Angular in my project. What I want to do is, when the user clicks to register, give a success…
-
2
votes1
answer3127
viewsCall another controller function at the angle
I have this controller: myApp.controller('listarClientesController', function($scope, $http){ $scope.lista = listarClientes(); function listarClientes() { $http({ method: 'GET', url: baseUrl +…
-
2
votes2
answers186
viewsDjango Rest and Angularjs Cors error
I am using Django Rest and Angularjs 1.x in a project, in case this backend project and frontend are isolated, I am using a server with Gulp to run the Angularjs, but when I try to access the Rest…
-
2
votes1
answer1092
viewsAngularjs - Problems with accentuation
I’m getting strings on servlet with problems in accentuation. Such as for example: Send $scope.nome = "Pé" to the servlet. In the servlet the line: String nome = request.getParameter("nome"); does…
-
2
votes1
answer434
viewsError with duplicate values in Angularjs
I have a problem of duplicate values in Angularjs, in my JSON will always have repeated categories, in ng-repeat I used the track by $index but the error persisted. The code of my controller:…
-
2
votes2
answers522
viewsThe script loads before ng-view has loaded (Angularjs)
I’m having trouble with the following situation: I have a ng-view on my page, but I need two scripts I implement at the bottom of the page hold on my ng-view load for them to interact with the…
-
2
votes1
answer2790
viewsNode.js and Express - Typeerror: Cannot read Property
I’m getting the following console error: Typeerror: Cannot read Property '_id' of Undefined I’m reading the book "Mean Full Stack Javascript..." from the code house. During the development of the…
-
2
votes1
answer410
viewsDoes Angularjs not read input of the Hidden type?
On one occasion, we were developing a form here at the company where, when selecting a product through a Autocomplete, the ID of that product was stored in a input hidden. I noticed that Angularjs…
angularjsasked 8 years, 3 months ago Wallace Maxters 102,340 -
2
votes1
answer1218
viewsCreate share button on Linkedin
I am developing a Web project and in this project contains the button to share on Linkedin (customized). I’ve worked with sharing Facebook and Twitter and so far is working normal, but I’ve never…
-
2
votes2
answers3964
viewsAngular edit the values of an object without changing the "original"
I have a ng-repeat in Angular whose value of each iteration is an object. By clicking a button referring to the row of the table where this object is used, a form for editing it is opened, and, with…
angularjsasked 8 years, 3 months ago Wallace Maxters 102,340 -
2
votes2
answers155
viewsEasiest way to turn a request into Formdata
this.getArray = function(callback){ $http({ method: "post", url: "index.php?modulo=ClientesOnline&acao=getClientes", headers: {'Content-Type': 'application/x-www-form-urlencoded'}, data:…
-
2
votes1
answer788
viewsHow to use CHARSET correctly in Angularjs
I’m starting at Angular and I have a basic question.. When I pass data from one form to another presentation screen, the accented characters are being presented all messed up. Please help me…
-
2
votes1
answer1629
viewsChange the header background of only one Ionic page
Has a project ionic and I need to ion-header-bar only one page has a different background than the rest of the application. Home () <ion-view view-title="Home"> <ion-content id="home"…
-
2
votes2
answers305
viewsHow to make an ngRepeat without a parent element?
I’m using Angular with Admin LTE. I need to make a ng-repeat where the li within a ul will repeat. I cannot repeat the ul, but only the li within that ul. I can’t encompass those either li with a…
-
2
votes1
answer268
viewsNg-repeat with preselected value
I’m building a CRUD complete, and when it comes time to edit, I have a problem with ng-repeat. To save, I have a form with a select and ng-repeat which contains the functions a collaborator may have…
-
2
votes0
answers25
viewsInitialize some user parameters using Angularjs and Google Cloud Endpoints
I am trying to initialize some user parameters using Angularjs and google cloud endpoints. Through a getProfile endpoint, I need to get user information like photo, description, age to show on…
angularjs angularjs-directives google-app-engine angularjs-servicesasked 8 years, 2 months ago Filipe Rebollo 43 -
2
votes1
answer164
viewsIonic record audio not back to view
I made an app, to record audio, it opens the native recorder but does not return the audio to view. .controller('MyCtrl', function ($scope, $cordovaCapture) { $scope.captureAudio = function () { var…
javascript angularjs apache-cordova ionic html5-audioasked 8 years, 2 months ago rodrigo.oliveira 1,251 -
2
votes1
answer3463
viewsAngularjs Error: [$injector:unpr] Unknown Provider:
I have the following error for dependency injection in my controller: Error: [$injector:unpr] Unknown Provider: $routeProviderProvider <- $routeProvider I’ve imported the angular-route in my…
angularjsasked 8 years, 2 months ago Wesley Pereira 21 -
2
votes2
answers1805
viewsHow to import the current $Scope to the $uibModal?
I have the following modal in my controller: angular .module('app', ['ui.bootstrap']) .controller('AlunosController', function ($uibModal, $scope, MyPaginator) { $scope.alunos = new…