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
votes3
answers781
viewsProblem with CORS using Ionic and Lumen
I’m developing an app with Ionic and using Lumen in the backend API. I am having problems with 'CORS', already configured the server (both using the internal PHP server and Apache, and the same…
-
1
votes0
answers288
viewsUsing multiple html pages with the same Angularjs + ASP.NET MVC controller
Using the routes with Angularjs, When entering the Author.html page with the route /Autor, is listed all authors registered in a table where a link is created for each author’s edition, according to…
-
1
votes1
answer232
viewshttp request method post Ionic 2, angular 2
I’m making an http post request, but without success... I actually have a success in the header the same returns, but the body is not rolling. My code is like this: postRequest() { let myHeader =…
-
1
votes1
answer3358
viewsUncaught Referenceerror: angular is not defined
I am in trouble because I am studying routes in angular and I came across the errors sequintes in the console Uncaught ReferenceError: angular is not defined at app.js:1 and also this Uncaught…
angularjsasked 6 years, 11 months ago WeltonSistemas 75 -
1
votes1
answer1705
viewsHow to import Javascript in angular?
Greeting to all, I know how to import the css files into a project made with the new version of Angular as you can see below: Archives angular-cli.json "styles": […
-
1
votes1
answer633
viewsDirective to restrict regular expression typing in Angularjs
I wrote a directive to inhibit typing from specifying a regex. However there are two bugs in this solution: In the first example the input must allow only numbers or point-followed numbers [.], or…
-
1
votes1
answer53
viewsGet HTML5 formatted date
I have the following scenario. A form with two date fields And when I click search, the data is in this format How can I get the date in the "yyyy-mm-dd" or "dd-mm-yyyy" format? Without this…
-
1
votes2
answers225
viewsHow to delete input and bring back filter options
Good afternoon I have a Cod. of filter that works very well, it is inside a dialog, but I need that when I leave the dialog that is in the same html, the value of the input returns to empty and the…
-
1
votes2
answers438
viewsSave data clicked on a JSON
I am creating a simple application in Angularjs, the application boils down to 3 pages: Apparatus: Where the person chooses the apparatus Plans: Choose the plane related to the device Final…
-
1
votes1
answer1242
viewsForm validation - Angularjs
I am trying to validate a simple form, where when the user leaves some field blank a div is damaged with this error. Follow the code var playlistApp = angular.module('playlistApp', []);…
-
1
votes2
answers162
viewsSelect Open window with bank options
I need some help, I have a code checkbox there was a window, if the window was gone, so far so good, only now, it’s not going to be another checkbox which will control the display of the window.…
-
1
votes2
answers4175
viewsHow to pass a variable to another page using IONIC?
Hello, I’m making an application using the IONIC framework and I’m having trouble passing parameters to another page. I have the listing of items ( that are data that are coming from the database )…
-
1
votes2
answers755
viewsdoubt with web printing
People in my project use MVC, on the front end use angular/html/js, etc. I need to print a report, what’s the best way to do it? what tools to use? I ran a test using this code: $scope.printReceita…
-
1
votes1
answer517
viewsReturn the URL of an image via JSON
I’m communicating my website with API of Behance and I have the following script written in Angular 1.5.5: var app = angular.module('PortfolioApp', []); app.controller('PortfolioCtrl',…
-
1
votes0
answers66
viewsReceive an array of objects in a php controller
I want to send one array of objects for my controller PHP and I’ve done it this way $http({ method: 'POST', url: "payment/pagamento", data: $.param(vm.listProdsCar), headers: {'Content-Type':…
-
1
votes0
answers61
viewsRecord multiple fields 1 at a time
I need to insert a "row" instead of a table, as in the image example below: . I will fill out this form and I need to register it in the bank. However, I need it to be registered one line at a time.…
-
1
votes1
answer26
viewsCkecklist with angular
I need a help. I want to create a Checklist in which the items are true according to a list that steps to the Selected scope. And this list is updated as I click on the checks. If you click on All…
angularjsasked 6 years, 9 months ago Andersson OS 107 -
1
votes1
answer1165
viewsAngular Format-date with date shortened one day
I’m using an angle directive to handle the dates my directive is this : app.directive("formatDate", function() { return { require: 'ngModel', link: function(scope, elem, attr, modelCtrl) {…
-
1
votes0
answers37
viewsCan I use jQuery code in a . Factory and inject it into the controller?
I’m developing a site using Angularjs ES6, and on this site I needed to perform a function and I wasn’t getting it. I searched the internet for a similar function to understand how I could do and…
-
1
votes1
answer229
viewsReturn json api on Ionic 3
I have the following problem, I am using a api ,that I created , when I use the method find me step one email and he returns to me if he found the email and senha Method buscarEmail(){…
-
1
votes0
answers130
viewsHow to pass a controller variable to the service?
I have a question, as I pass to a service a controller variable? I have a screen that has a table, when the user clicks on a row of this table, it goes to another screen with the data filled in…
-
1
votes1
answer471
viewsChanging css class of an item already rendered by ng-repeat
I need help with Angularjs (1.6), I need to change the css class of only one or more items already rendered by ng-repeat. I saw in some places that by clicking on the item it is possible to send…
angularjsasked 6 years, 8 months ago Guilherme Rebelo 35 -
1
votes1
answer369
viewsPass the id of an element as a parameter to a function?
I have a table on my site that is automatically generating an id for each table column. I put the function call on each line. How would I pass the id of this <td> by parameter in the function…
-
1
votes1
answer175
viewsAngular 1.6: Open an uibmodal within another uibmodal using "resolve"?
I’m having a problem opening an uibmodal within another uibmodal passing it through the resolve. I have two declared modals within the same controller, Modal1 and Modal2. Modal 1 passes modal2 in…
-
1
votes1
answer28
viewsvalue passed via Service is not being updated in the second controller
I looked for how to share a Scope between two controllers, and I saw that one option would be service or a Factory using the Singleton standard, but I’ve tried both and what happens is that I can’t…
-
1
votes1
answer239
viewsHow do I stop leaving two radio buttons, one on the other using Angular and IONIC 3
I’m having second thoughts about how to leave radio buttons next to each other. Being able to do this normally, but I’m having problems because of the radio-group <ion-list radio-group>…
-
1
votes1
answer979
viewsMasks in the Angularjs
I would like to know how to use the angular-input-masks. I did all the steps said in the same, but I couldn’t make it work. I’m using Angularjs, here’s my index page. <!DOCTYPE html> <html…
-
1
votes1
answer28
viewsView ngRoute array data
Good evening, I have the following situation. I need to display all user data when it is triggered. My view <div> <h1 style="text-align: center;">Lista de usuários</h1> <ul…
-
1
votes1
answer223
viewsHow to create a directive in Angularjs that creates a mask and did not modify the ng-model?
I created a directive where it serves as a mask for current account, so when I type a value always the most right value in the input is the digit of my account, until then beauty, is working. The…
angularjs angular angularjs-directives angularjs-scopeasked 6 years, 7 months ago Jonathan Guilherme 13 -
1
votes0
answers64
viewsHow to use ng-Hide to hide Pin in google maps?
How do I toggle (Hide/show) for the pins on the map? I am using this library NGMAP: My view code: <div map-lazy-load="https://maps-api-ssl.google.com/maps/api/js"…
-
1
votes2
answers307
viewsHow to make the angular recognize an ng-keyup event created dynamically in the element
I’m creating a directive that should dynamically include a function in the angular event ng-keyup, I tried to do it this way: Directive angular.module('app').directive('validar',validar);…
-
1
votes1
answer34
viewsAngularjs function is not respecting the condition!
I have this function, which takes two parameters, however, when I pass the different name, it falls into the if in the same way. $scope.deleteCategory = function(id, nome) { if(nome == 'Despesas…
-
1
votes0
answers397
viewsClear Screen after Transition - IONIC app
I’m creating an app with Ionic and angular, and I’m making use of tabs. I have 5 tabs, and one of them displays a "Menu" page, this page contains the listing of other pages that are not in tabs,…
-
1
votes2
answers97
viewsAngularjs and Laravel edit modal
I am trying to make a Modal to edit my data, using Angularjs and Laravel as backend, but when I call a function in my ng-Ubmit(), it is not invoked. This is my modal <div class="modal fade"…
-
1
votes1
answer1198
viewsReturn an array of a function in javascript
I’m trying to return an array of a function to assign to a modelin Angularjs. However the return of the function is undefined, but when I give one console.log before returning the array is correct.…
-
1
votes0
answers21
viewsPass angular array in json to mvc controller
I have this function that generates an array, I need to pass to the mvc controller through JSON, but it is not passing, follow how I am doing: var app = angular.module('myApp', []);…
-
1
votes1
answer30
viewsError when obtaining token in Interceptor - Type 'Promise<void | Observable<Httpevent<any>>' is not Assignable to type 'Observable<Httpevent<any>>'
I’m creating an Interceptor to send the token along with the requests for the Api. I use @ionic/storage to store my user information. However, when I try to get the token in the constructor to store…
-
1
votes1
answer107
viewsInteraction in browser behavior when leaving the page
Is there any way to open a question modal, when the person tries to quit a game in the browser, type, changing the address in the URL or giving refresh, or even more difficult, wanting to close the…
-
1
votes1
answer526
viewsCalculation using Angular JS
I managed with the help of Esmigol to solve one of the problems and I am insisting here because I did not find anything on the internet that can help me. There are few examples of what I need on the…
-
1
votes0
answers30
viewsAngualar JS Translate and dynamic elements?
I’m using Angularjs to create a site Multi-lingual, but I’m having problems with the elements created dynamically. var app = angular.module('myApp', ['pascalprecht.translate']);…
-
1
votes2
answers131
viewsSelected combo component
I have a problem loading the screen with a selected combo item. I’ve tried with jQuery, angular and it didn’t work. I’ve researched other answers around here and it didn’t work any of the…
-
1
votes1
answer61
viewsI’m having trouble reading a service variable on other controllers
I have the following problem: I have a service where I create a variable that I will manipulate and send to another controller. This is my service app.service("maissaude", [ "$rootScope",…
-
1
votes1
answer112
viewsError npm install Angularjs-dragula
I need to install the Angularjs-dragula ng2-dragula React-dragula At first I made the mistake: C:\Users\email\Desktop\Parafernalia Test> npm install angular js-dragula --save npm WARN saveError…
-
1
votes1
answer116
viewsHow to check if after selecting a file the same still exists in the Javascript directory
In my application I use as a javascript framework the Angularjs, and to select the files I use the following button: <md-button class="md-accent md-raised button-arquivo-margin"…
-
1
votes1
answer59
viewsHow do I detect whether the $http request is a cache response or not?
In Angularjs, the $http has a very useful option of caching the result of a request to a url specific. For example: $scope.getUsers = function () { return $http.get('/users', {cache: true}) }…
-
1
votes1
answer261
viewsHow to get a JSON result in Ionic 3, but echo result in PHP
I need to get the result from my JSON which could be "Registration already exists." or "Register Successfully." In my register, I am doing this way: submit(){ var nome = this.data.nome; var celular…
-
1
votes1
answer673
viewsAngular UI-Carousel Bootstrap with Multiple Slides
I’m using the Carousel UI-Bootstrap with Angularjs, but only shows 1 slide at a time. I wanted multiple slides equal to these examples below. Bootstrap 3 Multiple Slide Carousel, another example,…
-
1
votes1
answer195
viewsHow to add dependencies in a module already initialized in Angularjs?
I usually use Angularjs with a structure where I have a Javascript script for each page of my application. Main dependencies and project settings I define in a file app.js, which is used on all…
-
1
votes1
answer17
viewsHow to recover values from an ngdialog?
I’m having trouble working with ngdialog, someone could tell you how to recover data from a template formed by ng-dialog? below the code I’m working on ngDialog.open({ template: "\ <div…
angularjsasked 6 years, 2 months ago Alexandre Nobre 23 -
1
votes1
answer151
viewsngModel does not display dynamic field value
In a function that includes dynamic fields, I am unable to display the product value when typed. If I do only with an input displays normal value but with dynamic fields I cannot display, follow the…
angularjsasked 6 years, 1 month ago Ricardo Chomicz 127