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
votes0
answers193
viewsAngular: Ajax request
Shouldn’t the code below be working? I already tested on console and the text in the 'test' file is coming normally, only does not appear when I call with the //demo.msg//. Where am I going wrong?…
-
0
votes1
answer43
viewsIonic Authentification
I’d like some help, because I’ve been trying for days to think of a way to do this, but I still can’t quite figure out how to do it. I have an Ionic application, where access happens through a login…
-
0
votes1
answer35
viewsCreate and maintain a loadbar while a function is called
I need to create a loadbar and leaves it active until the function is finished. I can do this at the angle? $scope.getPosts = function () { $http({ method: 'POST', url: '/getPosts',…
-
0
votes4
answers140
viewsFactory returns blank result
Good evening. I have a Factory with the all function that picks up over $http, an external json, only it’s returning blank. The json address is http://alescrideli.com.br/kibelicia/categorias.json…
-
0
votes1
answer1024
viewsReturn JSON Function Data and Populate DIV
I want to learn how to recover the data from a function that does a GET in an API and returns me the JSON. I want to recover the data and fill in a list... with the ng-repeat. Is going to come…
angularjsasked 8 years, 7 months ago Diego Souza 16,524 -
0
votes1
answer65
viewsCan Expressjs be used in production?
I recently saw a course where Expressjs was used for backend testing in JSON for an application and I was amazed, but I came up with several questions: Could it be used in production? Can the most…
-
0
votes0
answers170
viewsFields with mask in Angular forms
Does anyone know anything that I can validate very dynamically forms in Angular? I have a form in an Angular application that I created using Bootstrap that I need to validate many items such as…
-
0
votes2
answers1203
viewsRegex to make full-name first letter uppercase, whether or not with a special character
I have the following variable in the Angular JS $Scope, with an Arrow Function: $scope.cad.nome.toLowerCase().replace(/\b\w/g, l => l.toUpperCase()); Which I need to format your content, which is…
-
0
votes1
answer87
viewsLoop problem with $stateChangeStart
Hello person I am creating an authentication system and check levels with Angularjs, I am using stateChangeStart to validate permissions in view. Only when I use $state.go('app.home'); it goes into…
-
0
votes1
answer1511
viewsGood practices with Angularjs controllers
In a view responsible for registering the members of the entity usuarios, if it is necessary to access data from an entity pessoas, for example, the ideal is that the method that will fetch the data…
-
0
votes0
answers12
viewsIONIC Error notification
This error is occurring in my application:…
-
0
votes1
answer430
viewsng-model of an object
I have a controller: function ItemsCrtl($scope) { $scope.items = [ {id: 0, name: "PC"}, {id: 2, name: "GEladeira"}, {id: 3, name: "Fogao"}, {id: 4, name: "cama"}, {id: 5, name: "privada"}, {id: 6,…
-
0
votes1
answer269
viewsalt and two letter shortcut
good afternoon I got that code right here $(document).on('keydown', function(e) { console.log(e.which); // Retorna o número código da tecla console.log(e.altKey); // Se o alt foi Pressionado retorna…
-
0
votes3
answers657
viewsDisplay values with angular
I have the following code: $http.get('/estados').success(function(retorno) { $scope.ufs = retorno.ufs; console.log(retorno); }); and the outcome of console.log(retorno) is: Now I’m trying to show…
-
0
votes1
answer133
viewsError when creating table with angular js
I’m trying to replicate an example I found on the net creating a table with angular js. However this returning me the link error:…
-
0
votes0
answers249
viewsSum of 2 values with button in Angularjs
I wonder what’s going wrong because when I do the ng-click in HTML the {{resultado}} appears as Nan. HTML <button class="button button-full button-positive" ngclick="juntarTotal()"> Juntar os…
-
0
votes0
answers97
viewsHow to update data in Google Maps
I have an app in Ionic that makes use of google maps and displays information registered by the user, through a form. Every time the user reports new data, these new data should appear on the map.…
-
0
votes2
answers426
viewsReturn when the function is over
How to return to alert("SUCESSO") as soon as you fall into return alert("ELSE");? sincronizar: function () { sincronizarCliente().then(function () { alert("SUCESSO"); }, function () { alert("SEM…
-
0
votes0
answers15
viewsAccess value within component tag
In my component I’m trying to take the value inside the tag of this same component to display it in the html of it, however, this component is the main component of my application, What I’m wanting…
-
0
votes1
answer220
viewsGoogle Maps API does not load in Angular
Hello, I’m trying to initialize the API of Google Maps on controller of my page Angular, only that it simply does not start the function. If I put it directly on the page, it works smoothly. It…
-
0
votes0
answers390
viewsUsing angular and Ionic, how do I traverse a vector by summing a variable of an object?
I have a vector of objects with prices, product name..., after the customer has clicked on a product I pass it to another list, of orders, after being done this need to make me add up the prices of…
-
0
votes1
answer50
viewsRemove information from within an angled array
I have an array with some information and that always comes with 4 numbers in front of the Names: {id: 1810, name: "2652joaodasilva", username: "", password: ""} {id: 2744, name: "3704DiegoSerri",…
-
0
votes1
answer147
viewsAngularjs reset to default option with ngOption
When activating the addAgent method the item is added but the selected option continues and the default option should be selected again. Controller $scope.addAgent = function (selectedAgent) { if…
-
0
votes1
answer92
viewsError in Ionic-lab
I’m making an app, however when I run Ionic serves -l or having access to Ionic-lab by the browser it displays an error message and for the server, I’ve searched a lot over the internet and found no…
-
0
votes1
answer216
viewsAngular - ng-Pattern - Hours
In the code below I need to make ng-Pattern receive 1 or two numbers, and the format is in hours, that is, minimum node 0 or 01 and maximum 24. <input type="text" step="any" value="" ng-model=""…
angularjsasked 6 years, 7 months ago Bruno Souza 151 -
0
votes1
answer299
viewsGenerate table automatically with c# and mvc
how to do the following (I don’t have code yet). On the page, I have a table with a Row and 5 Columns and at the end of Table a button (+) and at the bottom of the table a save button. The question…
-
0
votes1
answer88
viewsDisabling check according to selected quantity
I have a component that has an input:checkbox. This component is repeated several times on the screen. How do I block the checkbox, limiting my user to click at most 3 checkboxes IE, the user will…
-
0
votes4
answers636
viewsCheck object array index by property
When you click on an element, I get an id. With this I do it in an array and find out which object has the same id, and need to remove all objects with the same id. function onRemove(city) { for…
-
0
votes1
answer48
viewstest filter scenario
I would like to know the best way to test (with Jasmine) a filter with this scenario: function districtFilter(city, array) { var districtFound = array.filter(function(a) { return a.id !== city.id;…
-
0
votes1
answer217
viewsSum and Subtract values with checkbox and select
Could someone give me a hand? I need to do a checkbox sum and subtraction and select with values and show the result as the fields are selected, someone could give me a path to follow?
-
0
votes1
answer104
viewsEmail is not appearing in the field due in Angular
Good afternoon, everyone, I have an app, which, after the registration made it goes to the login screen. However, the email does not appear in the form as it should. login controller:…
angularjsasked 8 years, 7 months ago GustavoSevero 2,567 -
0
votes1
answer30
viewsList selected checkbox
I have a question regarding a function, how do I present the selected values of the checkbox and combobox in real time? For example, if I select option 1 of the combobox and a checkbox option the…
-
0
votes1
answer55
viewsWhat is $$hasKey in the array items?
I realized that for some reason, a property called $$hasKey was added to my array items. Each item has this property with different values. Example: [0: {$$hasKey: 'Object1', uf: 'ES'}, 1:…
-
0
votes2
answers1034
viewsHow do you pass two parameters in Ng-click Angular JS?
<button class="btn btn-conf-t btn-deletar" ng-click="deleteCategory(cat.id)"><i class="fa fa-trash"></i></button> Here I just step one parameter, it is possible to pass…
-
0
votes2
answers85
viewsError in ngModel call
I’m making a mistake of ' Cannot read Property 'razao_social' of Undefined' when I call an ngModel in my html. I created an interface like this: export interface IEmpresas { nome_fantasia : string;…
-
0
votes1
answer51
viewstidy up contents in the views and delete the white spaces that are appearing
I have the problem of listing elements in my views, these elemntos should appear together with no white spaces that separate them. To solve this question I tried to use masonry, unsuccessfully, and…
-
0
votes1
answer67
viewsRoles in Angular JS
Well, not found in any other post, if there is srry :) at last, I have the following config myApp.config(function($routeProvider) { $routeProvider // route for the index page .when('/index', {…
-
0
votes1
answer622
viewsHow do you turn a javascript function into an angular "function"?
I have the following Angular code. angular.module("contato", []); angular.module("contato").controller("contatoCtrl", function($scope){ $scope.app = "contatos"; }); How to use a normal javascript…
-
0
votes1
answer64
viewsProblem installing boostrap
I am trying to install Bootstrap using Nodejs from the terminal and the following error is displayed: npm ERR! code ETARGET npm ERR! notarget No matching version found for jquery@next npm ERR!…
-
0
votes1
answer129
viewsProblems adding side menu in project already started
I’m starting with Ionic, have a question. I created a blank project "Ionic start project Blank", and I was able to create the main screen of my app, just a LOGO with "LOGIN" button to enter the app,…
-
0
votes1
answer1730
viewsAngularjs Argument 'controller' is not a Function, got Undefined
Good night, you guys! I am beginner in Angularjs, I’m having the following problem Error: [ng:areq] Argument 'smgoCtrl' is not a function, got undefined…
-
0
votes1
answer25
viewsFailed to apply currency mask on an if inline
I have a condition where I need to apply the monetary mask. <td> <div class="pull-left">{{nota.issRetido[0] === true ? nota.qtdNotasEmitidas | currency : '-'}}</div> <div…
-
0
votes0
answers281
viewsIonic file sending
Guys I’m developing an Ionic app where I want to send a file (actually a photo ), this type of request I tried on get, but it didn’t work... How can I fix ? (The problem is sending via get ? My php…
-
0
votes2
answers681
viewsError in injection of angular module dependencies
I have the module of my application: angular.module('app', ['app.controllers','app.routes','app.services']); I have my service module: angular.app('app.services', []) .factory('usuarioService',…
angularjs dependency-injection angularjs-services angularjs-factorysasked 8 years, 7 months ago Walter Gandarella 636 -
0
votes1
answer31
viewsRecording Null Angularjs Database
Someone can tell me what is wrong, because it is recording in the bank an empty line and a line with the form data. $scope.submit = function () { var formData = { 'clienteCNPJ': $scope.clienteCNPJ,…
-
0
votes3
answers139
viewsAngular2 Tynymce Text editor
Can anyone tell if there is any property that at the time of clicking on the text editor I can issue some event. With (ngModelChange) I can type and do some action, then I need that at the moment of…
-
0
votes1
answer24
viewsUpload video files with Angularjs
I have a page where I upload the image files, pdf, xml, etc. On this page, I now need to upload video files too, I searched on some sites but I did not find examples of how to do, when I try to…
-
0
votes2
answers192
viewsAvascript function does not work when used ng-include Angularjs
I’m doing an injection of tamplate via ng-include Angularjs. Inside this template I have a button that calls a modal which is inserted into the template by another injection. Until then everything…
-
0
votes1
answer89
viewsCan I put one controller inside another in html?
let’s assume that my site made in Angularjs has a ng-include from a modal (a floating part of the screen) I can define a controller in this HTML file to control the part that will be included even…
-
0
votes2
answers415
viewsCalling functions in ngClass
I’d like to call in functions in the ngClass. I was able to call only the function, and if I want to call other classes it does not take, if I just put the function in the class it can…