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
votes1
answer55
viewsMultiple Fault Handling in Angular
I am developing a code and in the same I build some areas of influence for given locations (with coordinates and radius of distance or walking time from the coordinate), so when I complete its…
javascript angularjs web-service postgresql web-applicationasked 7 years, 3 months ago Nicholas Maestrello Agiz 69 -
2
votes1
answer1238
viewsAngularjs Filter various table fields
Personal I have a table where you can filter your data using filter, where I pass the filter information through an input: <tr ng-dblclick="openUpdateCadProduto(produto)" ng-doubleclick…
-
2
votes1
answer83
viewsCountdown JS not working on safari
I’m developing a website with a countdown. The code works well on the desktop and the timer starts counting perfectly in Firefox and Chrome, but in mobile, specifically in iphone, Safari browser,…
-
2
votes1
answer1898
viewsRead txt file
I am creating a web application and need to read a txt file that will be provided by the user. The code I’m using to perform the reading is not working and I can’t find anywhere else a way to do the…
-
2
votes2
answers647
viewsRead JSON and show in html using Angularjs
I’m trying to read the data of a Json file in html using Angularjs, but I’m not getting it. Follows part of the index.html code: <div ng-app="app"> <div class="page-header" id="principal"…
-
2
votes1
answer33
viewsPrint with setInterval in the same place
I need it when "filling..." is printed by setInterval, whether it’s exactly the same place as the first impression. It turns out it’s going down or forward. There is how to do this, print several…
-
2
votes1
answer87
viewsHide ng-repeat item after 5 seconds
I am making a task app to do (To from the list), I would like to know how to hide an item after 5 seconds after selecting the item through my checkbox. I have the following HTML structure: <body…
-
2
votes3
answers1180
viewsTransfer the value of a variable to Ctrl+C
Does anyone know if there is a way to transfer the value of a variable to Ctrl+C? I am working with Angularjs and inside Scope I have a variable that I would like to move to the Clipboard, but I…
-
2
votes1
answer343
viewsAdd map with search service using Angularjs and google maps
I have a map and wish that it can be located and marked a certain point by the address passed by the user. Example: The user types : rua são joão,403, São Paulo, Sp. The map must return the point on…
-
2
votes2
answers105
viewsHow do I use dynamic information coming by ng-repeat {{}} and use it as the argument of an ng-click (button) function?
I have a function ng-click: ng-click = "adicionar(0);" This function ng-click is inside the loop ng-repeat = "mercadoria in listademercadoria". There is a way to pass on information according to the…
-
2
votes0
answers43
viewsUndefined is not a constructor (evaluating 'Permissionsservice.isPermitted(Entity,crud_check)') thrown
Function: function checkPermissions(entity, crud_check, msg, title, state_redirect, paramsRedirect) { try { if (PermissionsService.isPermitted(entity, crud_check) === false) { showToastrError(title,…
-
2
votes2
answers680
viewsHow to make a button appear/disappear only from one of the loops created by ng-repeat? (Programming in Angularjs)
My angular code has an ng-repeat as follows: Angularjs: angular.module('meumodulo', []) .controller('mercadoria', function($rootScope, $http) { var ctrl = this; $rootScope.listademercadoria = [];…
-
2
votes3
answers4764
viewsExpression within ng-disabled
I have a problem with angular expression So it doesn’t work ! checked || ! checked2 <body ng-app=""> <label> Click me to toggle: <input type="checkbox" ng-model="checked">…
angularjsasked 7 years, 1 month ago HUGO PABLO 111 -
2
votes0
answers98
viewsHow to use ng-repeat inside the ui-Carousel library?
Carousel works, but I’m not able to ng-repeat within the directive, how could I solve this? In the controller I have the collection: $scope.steps = [ {id:1, text: 'nnoonon 1', current:1,…
-
2
votes1
answer96
viewsResult of the GET method brings all database relations and subrelations
I have an application where I have a listing screen I’m doing a GET method on my Spring Boot API Controller class @RequestMapping(method = RequestMethod.GET, value = "/distritos", produces =…
-
2
votes2
answers116
viewsAPI method searches for information but does not appear in front-end
I have a method of my API that does a database search @RequestMapping(method = RequestMethod.GET, value = "/entidadesUsuarioPermissao/{id}", produces = MediaType.APPLICATION_JSON_VALUE) public…
-
2
votes1
answer250
viewsCSS options menu
Good morning, I need to create a menu in the right corner equal to the example, but I’m not getting... when I click my button it is necessary to open the menu on top of the button without leaving…
-
2
votes1
answer294
viewsSelect for card expiration
I wanted to make two fields select one for the month and one for the year to use as expiration dates of a card, but wanted it to be generated dynamically and that when selecting the year 2017 for…
-
2
votes0
answers239
viewsProblem to host angular application
I’m a beginner with angular and I’m looking to host a simple application on the Uol host to study. the server is working but I can’t redirect to my application homepage. The code of the.js server…
-
2
votes1
answer160
viewsDoubts about routes Angular JS x ASP.NET MVC
I would like to clear up some doubts about Angular JS x ASP.NET MVC. Created an empty ASP.NET MVC application that will work with WEB API, configured all my routes with Angularjs, created an html…
-
2
votes3
answers3811
viewsUnparseable date: "2017-10-30T02:00:00.000Z"
I am setting up a register where I pass a date and, when saving, is showing this error: java.text.ParseException: Unparseable date: "2017-10-30T02:00:00.000Z" at java.text.DateFormat.parse(Unknown…
-
2
votes1
answer858
viewsIonic ng-if comparing values
I’m getting data on a API and I intend to check if percent_change_1h is less than 0, and if so displays a different text color. <ion-row> <ion-col> <ion-label…
-
2
votes0
answers151
viewsHow to put CSS correctly in a rendered SVG in the view via the use tag?
I’m using Angularjs to load an element, but it doesn’t take CSS. A View: <svg version="1.1" id="body_1" data-name="body-1" xmlns="http://www.w3.org/2000/svg"…
-
2
votes5
answers1389
viewsDisable body click for a period of time
Would there be some way to disable my click events body. When I call a function I would like to disable the events in the processing which is a little time consuming and when it finishes activating…
-
2
votes2
answers63
viewsHow do I move the company id from angular to php?
Hello I need to pass the angular company id to the php api. How do I do? Follows the code: Angular: app.controller('UploadCtrl', ['$scope', '$window', 'Upload', function($scope, $window, Upload) {…
-
2
votes1
answer560
viewsDate format error with input date
I have a date field form, date. At 1a. time I select a date and click save, this warning appears on the console: My HTML: <div class="col-md-12" ng-controller="SaldoCtrl"> <form…
angularjsasked 6 years, 10 months ago GustavoSevero 2,567 -
2
votes2
answers4154
viewshow to create a currency mask with regex
hello, I’m beginner with angular 4, I’m trying to make a mask for a text type field to validate a value in m². The Mask class contains the method to create the mask, the given value can be between 1…
-
2
votes1
answer87
viewsEdit array within another array
I am new to Angularjs and I have the following situation: I have a list of categories and, within this list of categories, there’s a product listing of that category. Example: Smartphones >…
-
2
votes2
answers708
viewsHow to manipulate DIV with Angularjs
I have 3 Divs and would like to manipulate them with buttons. Depending on the button, 2 Divs will hide and only one will appear. <div ui-view> <div class="box1"> conteudo <div>…
angularjsasked 6 years, 9 months ago Andersson OS 107 -
2
votes1
answer55
viewsFunction running from second click
I have a button in my project, which the function is to make appear a div that is as display None, but the function is only executed from the second click on the button, the first click just selects…
-
2
votes1
answer3378
viewsOpen CSV file and read its contents
I have the information from the CSV file on console.log back-end, I would need to access this file and read its contents, some hint? This is the code snippet from the back end that receives the…
-
2
votes2
answers1515
viewsCross-origin requests are being blocked
I need to consult some Ceps in viacep API (https://viacep.com.br), when I run get below: vm.buscarCEP = function(){ const cep = vm.empresaResponsavel.cep //RECEBE CEP DO CAMPO const apiViaCep =…
-
2
votes1
answer161
viewsHow to filter dates through Angularjs?
I have this function that takes how many accounts to pay there are and counts how many of them are within the range that I set. But you’re not getting the information right. $scope.filterDate =…
-
2
votes0
answers143
viewsAngularjs data pass to Modal
My problem is loading information into a modal. Controller Pai: App.controller('adminSolicitacoesCtrl', function($scope, $location, $auth, solicitacaoAdminService, EmpresaService, $filter,…
-
2
votes2
answers832
viewsFocus on the next input when reaching the maximum number of characters
I created a directive to move the cursor to the next field when it reaches the maximum character size, this way below: var app = angular.module("myApp", []); app.directive("moverProximoCampo",…
-
2
votes0
answers275
viewsDefine Matdatepicker component format
How to define component format Datepicker in Angular 6. In my Angular 6 application, I am working with the database Cloud Firestore of Firebase. When performing a document query, when the document…
-
2
votes1
answer146
viewsPass database content from one page to another
It seems to be something simple to research, but I’m not getting it. I would like when clicked on a list item, to open a new page with the detailed information of that item, will be the same…
-
2
votes1
answer220
viewsHow to assign two values in ng-click?
I have this html body that will invert the boolean variable d.expandedBlog when clicked. It is working normally. <div class="article-blog-icon-comment"> <i class="fa fa-commenting-o…
-
2
votes0
answers54
viewsReading a JSON by http in Angularjs does not work
Hello I’m trying to read a JSON via http using Angularjs (I must use Angularjs) and I can’t even display the first JSON data because it doesn’t have a string that I can call in Function(Answer) in…
-
2
votes1
answer115
viewsDifficulty with filter in Angularjs
Guys I’m having a hard time developing a table filter that has the fields name and price. I would like to filter a respective price with the following conditions: = (equal) > (greater) <…
-
2
votes1
answer334
viewsHow to group ng-repeat in Angularjs
I need to group the Class field and list the tasks that exist, but I can’t do that with Angularjs. Here is my view: <div class="row"> <div class="col-md-12"> <div…
-
2
votes1
answer24
viewsAngularjs download file from ASP.MVC5 passing parameters
Situation: I have an ASP MVC5 API that generates an excel.xlsx and returns it in a Filecontentresult. All in memory, because I can’t save the file to the server disk.It works ok if I access the url…
-
2
votes1
answer189
viewsformControlName with *ngFor
I have a form with 3 fields q will be used by the user: a select, a textarea and an input. These fields are filled with an ngFor q data comes from the database: <form id="form-group"…
-
2
votes1
answer1642
viewsHow to make this transition effect using CSS?
How to make a transition with pure CSS, and in the final transition layout I will have 2 boxes on the left side. The transition: When loading the page, you will only have one box with evaluation…
-
2
votes4
answers431
viewsDynamically change class
I have an html with ngFor: <div class="row p-3 border-bottom" *ngFor="let cont of contrib"> <!-- ! --> <div class="col"> <p [class.text-danger]="redName === true"…
-
2
votes0
answers53
viewsHow to put two controllers on one page without one interfering the other
I am making some forms with Angular and in some of the cases I need the person to put some information to save the foreign key, basic example: Let’s assume the sale of a product and the invoice…
-
1
votes1
answer1028
viewsLooping Loops with Angularjs
I’m trying to list the two-loop data ng-repeat of my code, but 1 of them is not working. In case I’m using: <ul class="nav nav-stacked nav-pills col-md-2" > <li ng-repeat="g in…
-
1
votes2
answers83
viewsRedeem http service result in another function
controllerPrincipalService.getResultado(id).then(function(dados) { // limpando o retorno var p = data.search("{")-1; var res = data.substring(76); var f = res.search('<'); dados =…
-
1
votes2
answers1019
viewsHow to make nested directives Angularjs?
The idea is to make sure that when calling a single directive, it renders the directive corresponding to the preconfigured CSS framework. For this I have a global variable var window.styleSource =…
-
1
votes1
answer304
viewsHow do I know which State I’m coming from using ui-router?
I’m using Angular-Ui ui ui and the only thing I need to know is which state I’m coming from. I already have for example; app.controller("MainCtrl", function($scope,$state) { //$state.current ok, mas…