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
-
0
votes1
answer73
viewsfilter a list only by the beginning of the word Angularjs
I have an input (multiple selection), I am using lib ui-select, I get a city list and need to filter them, the problem is that the Angularjs filter filters the whole word, I need to filter the…
-
0
votes1
answer170
viewsAngularjs/PHP/Javascript - I can’t update the ng-model value
First good night. I have a simple table that is powered by an SQL database. I developed a button that aims to update the contents of the "ng-model" according to what you type in a simple form. The…
-
0
votes0
answers29
viewsExpects 2-3 arguments, but has 0. Ionic 2
Guys I’m developing my first application in Ionic 2, and I came across this mistake. I like to organize my program, so I created some templates... I’m trying to create my page to add/edit a task in…
-
0
votes1
answer45
viewsIs the writing of that function correct?
I made this function so that it would take a js request and when inserting the name of a category, give a select in the database, check if the name already exists and if it returns 0 in Count, it…
-
0
votes0
answers35
viewsDoes Javascript reference when it comes to assigning an array to another variable of the same type?
I would like to ask a question about a problem I’m having (I apologize if somewhere has the answer, is that I haven’t found and so I’m posting). Introducing I want to display some chekcBoxes already…
-
0
votes0
answers256
viewsNo 'Access-Control-Allow-Origin' header is present on the requested Resource. - MEAN STACK
Hello! I need to pass a string to Node and am receiving the following response in the browser console: Failed to load http://localhost:3003/api/buscarCep: No 'Access-Control-Allow-Origin' header is…
-
0
votes1
answer188
viewsAngularjs route does not open on page loading
I have a template and two routes, none open on page loading (or F5), but if I make a $state.go('nameDaRota'), it is loaded correctly. // routes.js angular.module('app').config([ '$stateProvider',…
angularjsasked 6 years, 7 months ago KaduAmaral 11,472 -
0
votes1
answer145
viewsAngular asynchronous ng-repeat
I am using Angular 1.6.10 to show the data of an API, as the data search is asynchronous, I believe ng-repeat runs before the data is loaded: angular .module('appDataPOA', [])…
-
0
votes1
answer217
viewsGet or return a variable to the angular
I have a method where I do a certain validation and depending on the scenario, I need to return only an alert and continue with the request or a possible Badrequest also returning a message. I…
-
0
votes0
answers89
viewsreturn object returned from bank to front-end
I don’t understand why you return On the Node.js server: //Insert user router.post('/', async function(request, response) { let object = { name: request.body.userName, password:…
-
0
votes1
answer33
viewsInline vuejs edition
When you click on the note column all inputs will appear. I wanted each input to appear when clicked on the corresponding row. new Vue({ el: '#app', data: { nota:'nota', edit: '', myclass: 'before',…
-
0
votes1
answer39
viewsUse element attributes in function of controller scope
I have a form that calls a function when being submitted through the attribute, for example: ng-submit="submit('POST', 'example.com')" I would like this attribute to be just called the function, and…
-
0
votes0
answers99
viewsShow table only if you have widgets at angular 2+
I have the following table: <table class="table table-bordered"> <thead> <tr> <td>Nome</td> <td>Email</td> <td>Data</td>…
-
0
votes0
answers81
viewsAngularjs ng-repeat does not display data
I made the request via get using the Laravel as backend. However, if I update some data in the database itself, I need to refresh the page where it is loaded angular for it to update. Using the…
-
0
votes0
answers116
viewsPOST com Angularjs e Laravel
I’m trying to send via POST to my backend Windows, but on the console it points out the error: POST http://localhost:8000/new 500 (Internal Server Error) ! ! Here is my code from Angularjs…
-
0
votes1
answer31
viewsng-repeat does not display empty values
I have the following code: <input type="search" class="form-control" placeholder="Busca por motivo" ng-model="search.motivo" > <tr ng-repeat="item in vm.listaDesbloqueio |…
-
0
votes0
answers37
views$request->input always returns null
Angularjs file $http({ method: 'POST', url: API_URL + "produto/update" + "/" + produtoSelecionado, data: $.param(obj), headers: { 'Content-Type': 'application/x-www-form-urlencoded' }…
-
0
votes0
answers181
viewsBalls are filled according to the status of the page
I am developing a form where I have three pages and consequently three top balls, each representing a page. The form logic is already completed where each page is displayed according to the…
-
0
votes0
answers48
viewsExporting html to excel does not work in Firefox
Good afternoon, I’m doing a function to export my table in excel... In google chorme works well, however I was testing in firefox and not working and does not return me error, I can not identify…
-
0
votes1
answer290
viewsBlocking routes for non-logged-in users
I’m doing an application and now that it’s almost complete I was testing the attacks. I realized that with ngRoute routes the application is vulnerable to url entries. For example, the application…
-
0
votes1
answer500
viewsClear input - ng-model - change
I own a md-select where according to the selected, I create some div’s using ng-if. These div’s created have in 02 of them equal models (ng-model). Therefore, when you change Md-select to another…
-
0
votes1
answer48
viewsJava Script Date Comparison Help
I need to compare final date of a service contract to put in a report that will have 4 types of status: 1- contrato em vigor (Verde) 2- contrato próximo ao vencimento (Amarelo) 3- contrato vencido…
-
0
votes1
answer53
viewsHow do checkbox behave like radio in ng-repeat?
I’m trying to make a checkbox behave like a radio, but I’m not getting a few examples but I don’t understand how it works. If anyone can help me. I thank you in advance for your attention! var app =…
-
0
votes1
answer446
viewsError running unit test in Karmajs
Good afternoon, When running the unit test in Karmajs I have as return the following errors: Using Angularjs with Requirejs, Angularamd and Instanbul. Referenceerror: Can’t find variable: module And…
-
0
votes1
answer846
viewsChange color only of the clicked element (Angularjs)
I need to change the color only of the element that was clicked, in case change the background color of the DIV, I have an ng-repeat, but when clicking on the div, all the others have the background…
angularjsasked 6 years, 5 months ago Marcelo Batista 1,617 -
0
votes1
answer80
viewsHiding menu option according to loan type
Good afternoon, I am developing a registration system with Angularjs and C#, when registering a new user there are two types of users to choose, administrator and librarian, being administrator type…
-
0
votes1
answer81
viewsHow to remove disabled from a button in different tables using ng-repeat in Javascript?
I’m having a question about the disabled. I have an array of pessoas I want to include in an array of empresa. I use data-ng-repeat to display pessoas in a table, where buttons are added to each row…
-
0
votes1
answer245
viewsEmpty PDF when downloading using Spring Boot and Angularjs
I am creating an application where I need to return a PDF through an API call developed in Spring Boot through Angularjs, my code is like the below: Return of the API: ResponseEntity.ok()…
-
0
votes1
answer500
viewsHow to get Angularjs URL parameters
How to get parameter of the URL with Angularjs. If anyone has any example I thank. $scope.pegaCNPJ = function () { var cnpjs = $("#prospectCNPJ").val().replace(/[^\d]+/g, '');…
angularjsasked 6 years, 5 months ago Ricardo Chomicz 127 -
0
votes1
answer166
viewsPass ID to modal via ng-repeat Angularjs
How to take the line ID (Prod.productId) on ng-repeat and switch to modal to update the record. It must be something with ng-click on the button but I’m not finding any example. Someone could give a…
-
0
votes1
answer593
viewsHow to Get Specific Return Data from a JSON with Ionic 3
I believe it’s simple, but coming out of Ionic 1 to 3 has changed so many things. I need to take all my Json returns from this routine (I actually need the user ID and log in localstorage):…
-
0
votes0
answers133
viewsHow to make a datalist of options generated with a json using Angularjs?
I wanted that when filling the field of professions, a list of the professions already registered for the end user would appear, as a way to help the user follow a pattern for the names. So I…
-
0
votes1
answer118
viewsDoubt about query with parameters using Angularjs and http request get method
first of all, good afternoon. I have come to ask for your help because I have already spent a few hours looking for a solution and nothing. I am trying to limit the SELECT from financial list to the…
-
0
votes1
answer143
viewsSearch database-specific data in Ionic 3
I would like to know how to filter and receive only the data I want on each page. my database.ts : `getAllProducts(){ return new Promise<Produto[]>((resolve, reject) => { let sql = "select…
-
0
votes1
answer60
viewsng-repeat with mysql database data
I have 02 tables in the bank (Prospect and opportunity) the two tables have the prospectId. As I do to display in ng-repeat. I was trying to Inner Join in the php query and returns this error in the…
-
0
votes2
answers400
viewsFilter combobox search Angularjs
I have the SELECT multiple with options for query, only when selecting an item does not return anything, if someone can give a strength I thank you. /* Retorna operadoras */ $scope.operadoras = [{…
angularjsasked 6 years, 4 months ago Ricardo Chomicz 127 -
0
votes2
answers55
viewsHow to make multiple Ivs that alternate between visible and invisible?
I’m a beginner in Angularjs, and I don’t know how to proceed in this case. I know how to create a panel that can appear and disappear as a variable in the controller, like this: <div…
-
0
votes1
answer99
viewsHow to treat an array with N lines and turn to a list to send to C#
I’m sending an array of angular js for the controller of C#, and I’m treating him with stringfy for json. Only in my way POST he gets nothing, just returns null Code C# public void Post(string…
-
0
votes1
answer116
viewsSum ng-repeat value Angularjs
How do I add in ng-repeat the amount itensQtd when it’s the same (id) column itensOportunidade? As an example of the image. /* Lista oportunidade */ $scope.listaOportunidade = []; var…
angularjsasked 6 years, 4 months ago Ricardo Chomicz 127 -
0
votes1
answer238
viewsAngularjs - Problem with Angular-Charts
First of all, good night. I’m having trouble displaying the graphics generated by angular-Charts. library page: http://jtblin.github.io/angular-chart.js/ I followed the step-by-step closely, saw and…
-
0
votes0
answers242
viewsError: Cors when integrating nodejs and Angular 6
I have a problem that I need to treat, but I’m not getting any solution so far. I have an application in Nodejs that I developed in #Expressjs and I face some problems related to CORS Browser. In my…
-
0
votes0
answers22
viewsArray splits itself when the elements inside it pass 100 during the api post
I’m trying to post for my api but when the amount of items in my array exceeds 100 it splits up like this: But my api only accepts this array when it gets like this: What I should do for the array…
-
0
votes1
answer130
viewsJavascript IF return content
Good morning to all, I have a certain problem, if it was in pure Javascript I would have done using if and else no problems, as I did in another file and it worked! Basically the HTML file (with…
-
0
votes1
answer119
viewsReturn to incorrect IF condition
I make a request in the api to get some data, and then I foreach and give the result for a variable this.DadosQueTaNaTela soon after I make another request in another api to take the data and do a…
-
0
votes1
answer513
viewsHow to read an array string in Ionic/Angularjs or Javascript and move to directives?
I passed parameters to another TS with: console.log('Data', navParams.get('sessoes')); That shows me this result: {data: "2018-09-11", weight: "200", sessoes: "20", repeticoes: "2", notas: "teste"}…
-
0
votes0
answers342
viewsjsPDF with colspan at the top of the table
i am trying to assemble a pdf based on the image below I can manage the pdf, but without the line with "Info" and "Contact". It is possible to generate the pdf in the same way as in the image?…
-
0
votes1
answer42
viewsAngularjs Prevent the entry of data-free urls
I’m having a problem, I want to make a page that takes values I determined in a video.js file to be returned to a specific url. .state('video.id', { url: '/:id', templateUrl: 'tpl/video_id.html', })…
angularjsasked 6 years, 3 months ago Marcelo Cordeiro 27 -
0
votes2
answers62
viewsGreater amount of appearances of an element in an object array - Javascript
Hello, I have a news array(objects) lista: Array<Noticia> = []; From this array I need to find the author who has published the most news. A news has: ID | Title | Tags | Author | Contents. My…
javascript angularjs array algorithm typescriptasked 6 years, 3 months ago Arthur Gabriel Silva Arantes 51 -
0
votes1
answer194
viewsHow to put a ui-accordion with another ui-accordion inside?
How do I individualize the ui-accordion, the script is not loading? Javascript: $( function() { $("#accordion_search_item1,#accordion_search_item2,#accordion_search_item3") .accordion({…
-
0
votes1
answer1734
viewsHow to insert <script> in angular? Simple HTML works!
Guys, my . html Component is like this: <script> window.onload = function () { var chart = new CanvasJS.Chart("chartContainer", { animationEnabled: true, title:{ text: "Monthly Expenses,…