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
answer1112
viewsResponse to preflight request doesn’t pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested Resource
I am running client/server tests where the client is being developed with Angularjs and the java server + Tomcat + jersey. When I try to do a client-side post, it gets to the server at the right…
-
0
votes1
answer297
viewsUsing Angular "track by $index" with paging, filtering and sorting
good morning! I’m having a huge problem trying to use the Smart Table, with paging, filter and searching in my table. I had the table working when I converted a JSON that consumed by an object…
-
0
votes1
answer1241
viewsAdding the edit function in a single Form in Angularjs
I am starting to have contact with Angularjs and I developed a simple application of registration, where I can insert and delete data. But I’m having trouble implementing the editing function. I’m…
-
0
votes1
answer3083
viewsdoubt Input type date
Good afternoon, I am making a form, for registration and modification of users. When I try to insert a date in type="date" inputs, no data type is displayed on the screen. These dates I’m using all…
-
0
votes0
answers180
viewsMaking http post request to webservice
I’m making a requisition here http for a webservice apsh, to make request I do so: validaLogin(user: User) { var data = JSON.stringify({ email: user.email, senha: user.senha }); console.log(data);…
-
0
votes1
answer83
viewsAdd event to a Directive element
I have a Directive that within it has a list. This list is populated after the successful response of an ajax call. For this reason my Directive link function does not find this list as soon as the…
-
0
votes0
answers53
viewsdoubts with modal and javascript
I have this modal: <div class="uk-modal" id="modalbaixados"> <div class="uk-modal-dialog"> <div class="uk-form-row"> <div class="uk-grid"> <div><h3…
-
0
votes3
answers834
viewssending email with nodemailer
I am making an application with Angularjs and have a contact form with name, email, phone and message. I need the contents of this form to go to the client’s email and I’m trying to use the…
-
0
votes1
answer250
viewsAngular: Module name is not loaded in the ngApp html tag
I’m doing a basic angular test that reads a simple json and displays on the screen. My problem is that when I put the module name in the ng-app tag, all functions of the angular stop working.…
-
0
votes1
answer190
viewsAngular JS: $http.get and $routerParams
How to use routeParams in $http.get to return only 1 object? I want to bring only the object that has the same ID passed in the nightParams. <a href="funcionario/edit/{{funcionario.id}}"…
-
0
votes2
answers333
viewsDefault Value Dropdown Angularjs
In my project I have a dropdown, iterated array. Note that in the array I have a key called default which is set to true or false. I wish the dropdown defalt value was what came with the key set to…
-
0
votes0
answers60
viewsMap does not load en route
I am trying to upload a map into an HTML file that is mapped on a route using ui.router. Head of the index <head> <title>Página Inicial</title> <base href="/"> <meta…
-
0
votes1
answer121
viewsHow to search for words in a JSON using Ionic?
I have a JSON and it’s paginated. When it was not paged, when typing anything in the search, it looked for what was printed on the screen, as in the following example: <form…
-
0
votes1
answer244
viewsjquery datatable display details
I have a jQuery Datatable that has detail, where click on the line expands the detail tamplate that makes a request to the server and brings different data from the main table, I followed this…
-
0
votes0
answers105
viewsCSS Animation & Angular JS
Making a small application with Angular and Material Design. To leave more cute I decided to put some simple animations. The first of them is the Slideinright that the screen should slide to the…
-
0
votes1
answer115
viewsHow do I get splice() into http.get using Ionic / Angularjs for searching?
I want to filter according to what the user type on the screen. I have a form with the ng-model="q" and the | filter:q Where my http.get pass the parameters I am filtering, where ng-model is the…
-
0
votes1
answer204
viewsValidating whether or not there is a user with Firebase
I’ve created a registry, web, on Firebase. I can sign up, but if I get a valid email and password, I don’t get redirected into the system. And if I put an email and any password, it does not show…
-
0
votes1
answer187
viewsng-click fires twice with a click on mobile resolution
I have the following problem: ng-click fires twice with a click on the mobile resolution, when running in the browser there is no problem. $scope.consultaItensMesa = function consultaItensMesa(mesa)…
-
0
votes2
answers44
viewsDelete Method Does Not Work
Good Morning I am learning Angular JS and am having a hard time getting my delete method to work. Does anyone know where the bug is ? JS Code angular.module("listaTelefonica", []);…
-
0
votes1
answer49
viewsError inserting Data with Angularjs
I am encountering errors when entering data with Angularjs Codigo Angular: var myapp = angular.module('myapp',[]); myapp.controller('productController',function($scope,$http) { //listar produtos…
-
0
votes1
answer35
viewsWhy can’t I get the form data?
Something really weird is happening, first time this happens. I have a registration form. when I click save, the console appears 'Undefined' and aligns... Impossible to be 'Undefined' because there…
-
0
votes1
answer277
viewsDatatable Angular Js Problem
I’m trying to use the Managed datatable. In my controller I have the following function : angular.module('MetronicApp').controller('OperatorsController', function ($rootScope, $scope, $http,…
-
0
votes1
answer36
viewsHow to make a required ion-radio, or make the button inactive while not choosing an option?
How can I make an ion-radio as required, or disable the button if nothing is selected? <ion-radio ng-model="escolhido.categoria_comida_cod_categoria_com"…
-
0
votes2
answers174
viewsAngular scroll with problem loading BD data
I am trying to implement Infinite Scroll to my project and following some lessons I found on the internet I reached this code: <?php $query = "SELECT * FROM produtos ORDER BY id DESC"; $resultado…
-
0
votes0
answers82
viewsDirective does not work with dynamic properties
Whoa, whoa, guys, whoa. I’m developing some custom directives around here, and they need to have properties added flexibly (like an ng-class). I was able to develop the mechanism to do this,…
-
0
votes1
answer54
viewsUL with Checkbox Angularjs Problems
I’m trying to create a Checkbox tree but I’m having problems with my directive when passing the model. Follows code: <ul class="main-level"><li> <mdi-input-checkbox mdi-reverse="true"…
-
0
votes1
answer49
viewsProblems Webservice ASMX
When I send a JSON return and the text is accentuated, JSON breaks. Here is the request code in the Controller $http.post("../backend/controller/SugestaoController.asmx/comboListarSugestoes", {…
-
0
votes1
answer101
viewsHow do I redirect Exception to an error page?
How do I redirect Usernamenotfoundexception to a page? if ( user == null ) { log.info( "Email " + email + " não é um ususário cadastrado." ); throw new UsernameNotFoundException( "Email " + email +…
-
0
votes0
answers311
viewsAngularjs autocomplete visual studio code
I’m creating an API for Angularjs and know that in vs code you can write a d.ts file that defines types and other things in the IDE. I already created this index.d.ts for autocomplete and it worked…
-
0
votes0
answers69
viewsAngular JS Checkbox Questions
I have a little problem in my application, I have a Grid with check-box and a check-box to mark all. I want a job that weaning the check-box that marks all when you don’t have all the grid…
-
0
votes1
answer236
viewsValidation does not work with ng-model
Why doesn’t this validation work? When I was just $scope.exibeValidacaoTarefa = function(){ return $scope.atividadeInput == null || $scope.atividadeInput.descAtividade == null ||…
-
0
votes1
answer365
viewsAngularjs ng-click called twice
I am using the ng-click to make a common javascript call. But it is being called/fired twice when I click on the call. My directive: angular.module('myApp.directives').directive('cadastrarPost',…
-
0
votes1
answer74
viewsProblem with angular selection
In the HTML I’m playing, I created a select where the selected option is pulled from a script in Angular. It uses the data.singleSelect to pull the dice and put the selected value as the selected…
-
0
votes1
answer1501
viewsUncaught Error: [$injector:modulerr] for angular-material.js
I have a problem using the Angular Material JS. I have my index with references to the Angular-Material project. <head> <!-- AngularJS Material CSS using GitCDN to load directly from…
-
0
votes0
answers65
viewsHow to stop text cursor from going at the end using $Scope. $watch? Angularjs
How do I stop the text cursor from jumping on the last line of a textarea? //textarea $watch $scope.$watch('string', function(s){ var string = s.split('\n'); if(string.length > 0) { var…
-
0
votes1
answer180
viewsRoutes - Angularjs
I’m using routes from angularjs 1.6 and I’m having problems with the java connection filter part. When I log into my system and access a page of my system, the filter works normally, but when I open…
-
0
votes0
answers432
viewshow to edit an angular array
Hello I’m new to js and angular and I’m trying to edit an array where I save tasks to be developed. I have the following functions to add and delete the elements, but I can’t think of a way to edit…
-
0
votes1
answer82
viewsGetting the time typed in javascript
Person, I have a simple form where the user should type the time. <form name="formAgendamento" class="formAgendamento"> <label>Dia</label> <input class="form-control dia"…
-
0
votes1
answer55
viewsAngularjs problems with view routing
I am developing a web application with Angularjs 1.6, and I am encountering an error only when I open index.html directly from the page. However, when running directly from the IDE it works…
-
0
votes0
answers183
viewsAngular request does not send post
good night! next...I am making asynchronous requests with Angularjs and it works if use get and params, however if I switch to "post" and "date" it stops sending...I will post here the controller…
-
0
votes0
answers279
viewsDelete data from one html table from another
In my program, I add a name of a phone, mark the checkbox, click on "Search" and it returns me tuples of data in a table, as shown in image 1. However, in image 2, when I click on "Delete", it…
angularjsasked 7 years, 3 months ago Antonio Braz Finizola 391 -
0
votes1
answer212
viewsAngular + requirejs Controller logging error
I’m starting an application with Angular + Requirejs. Follow below Main.js ;(function (doc, undefined) { 'use strict'; var $scriptDefault = doc.querySelector('[data-js="script-default"]'); var…
-
0
votes1
answer714
viewsConvert xml-like format to json with javascript
I am using the following code to read a file similar to an XML, but I need this file to be converted to a JSON, will anyone be able to give me this help ? Follow the code of my index.html…
-
0
votes2
answers1015
views$injector:unpr Unknown Provider
I am trying to create a service on Ionic 1 but am getting the following error Error: [$injector:unpr] Unknown Provider: heartTeamSrvcProvider <- heartTeamSrvc <- teamCtrl heartTEamSrvc code…
-
0
votes1
answer161
viewsUrl loads characters ! #%2F and does not load the correct view in Angular
I am at my root index.html and loads normal, but when I type the # more the / and a view for example the view tests the url: index.html#! #%2Fview-test. I would like to know the pq! Follow the code…
-
0
votes1
answer176
viewsngRoute breaking when accessing a specific url
Hello! I have a problem in ngRoute that I can not understand the reason. Basically, when I try to access a route-specific URL from outside the application (not from an application link), I get the…
-
0
votes1
answer2852
viewsAngular form does not take value typed in input
I’m having a problem where the angular is not assigning value to the variable of an input field of mine. Follows the code: Component.html <div class="row justify-content-center"…
angularjsasked 7 years, 2 months ago Fabiano Amaral 125 -
0
votes1
answer32
viewsRoute not working with ui-router - Angularjs 1.6
I have the /main route, which when prompted redirects to an html page. The url is correct, but is not loading anything, remains on the login page. This route is accessed when the user logs in to the…
-
0
votes1
answer89
viewsInvoking a function by passing arguments within $Scope does not work
I have a function in a file called "mapHelper.js" responsible for adding popups on a map: function writeMarker(x,y,msg) { var muxiCoordinates = [x,y]; var muxiMarkerMessage = msg;…
-
0
votes0
answers46
viewsAngular syntax not working properly
I have a page html containing the following code: <button class="button button-assertive button-full button-outline centro icon ion-plus" option-getter="getOpt(option, complemento)"…