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
-
3
votes2
answers325
viewsController runs every time I change route
In index.html I have 2 views: sidebar-left : where the menu is loaded after login. content : where the page in question is loaded I am using angular-ui-router and after login, the user is redirected…
angularjsasked 10 years, 2 months ago Filipe Moraes 8,737 -
3
votes0
answers206
viewsRun Angularjs in SILEX project
Guys I have a backend all made in Silex running perfectly, then my client sent me the frontend made in Angular, as I never used the Angular like to know where I put the htmls, JS, CSS of this…
-
3
votes2
answers972
viewsHow to index on google sites that use javascript?
I’m doing a SPA site with Angularjs and I’m having a hard time indexing all the pages on google, because as I load the information via AJAX, it just indexes my homepage, I’ve read many things about…
-
3
votes1
answer591
viewsng-View does not render content - Angularjs
When I access my index.php, I ask in my Angular route settings that it calls the "index.php" view inside the "view" folder, but it finds but does not render anything on my screen var app =…
-
3
votes2
answers1014
viewsHow to recover data sent from a post request at angular
I’m making a post request for a php file that requires some data that is sent by the request. My question is how to retrieve this information that is being sent in the request My requisition code is…
-
3
votes2
answers1282
viewsAngular.js function to calculate age
Good evening, everyone. In my comic book, I store customers' date of birth. I have a list that presents: name | Cpf | age? How could I take the data stored in the bd and using Angular.js or php…
-
3
votes1
answer1390
viewsHow to select a value from an <option> by Angularjs
Well, I do an interaction to get the options, and I want to select the first option <select class="form-control" name="accounts" ng-model="vm.deposit.account" ng-options="account.account as…
-
3
votes1
answer653
viewsHow to hide a div with timeout in Angularjs?
I’m new at Angularjs and I’m getting beaten to solve simple problems. I have my controller mainAppControllers.controller('NomeCtrl', ['myservice','$rootScope','$scope', '$routeParams',…
-
3
votes1
answer693
viewsUse of $rootscope Angularjs
I wonder if it is correct to use the $rootscope in this way? $scope.buscaChamados = function() { modelSac.buscaChamados() .success(function(data, res) { $rootScope.chamadosSistema = data; }); }…
-
3
votes2
answers891
viewsHow to change the class of a :after in Angularjs using ng-class?
I have a div with an after and would like to change the background color of that after dynamically via controller, however I am not succeeding in importing ng-class in parent div. <div…
-
3
votes2
answers314
viewsHow to omit a specific ng-options item?
I have this code snippet below to load a combobox with the 'name' of all values and is working correctly. <select ng-model="information" ng-options="value.id as value.name for value in…
-
3
votes2
answers858
viewsCalculate time difference in Angularjs
I have two variables, startTime (01:00:00 AM) and endTime (02:00:00 AM), need to calculate the difference between one and the other, how would do this at the angle? vi que existe o Date.parse(), but…
-
3
votes2
answers1033
viewsMake two Directives have the same $Scope at Angular
I have a directive that generates a button, and when I click this button a counter increases 1. This directive is inserted in two places in my index.html. I wish that when I clicked on one of the…
-
3
votes3
answers2843
viewsController Angularjs Statement
Following the script below generated a doubt in which declaration to use, in the Angularjs documentation I found the two forms in different examples, but I did not find an explanation of which…
-
3
votes6
answers12215
viewsHow to view php/mysql and Angularjs data?
I’m trying to do some tests with PHP + Mysql + Angularjs and I was stuck in a doubt of how to treat the database data with angular and send to screen, I have the following codes: con-bd.php <?php…
-
3
votes1
answer538
viewsAngularjs + PHP: How should data be consumed?
Starting some readings on the Angularjs for a possible future project, it came to my mind some doubts regarding the client/server integration and the consumption of the data provided by the server.…
-
3
votes1
answer72
viewsAngularjs Protocol file://
Guys, I’m making an embedded application in Angularjs that when the system (operating, not the application) starts, it opens the index.html that contains the application made in angular. The front…
-
3
votes2
answers870
viewsHow best to reuse code between modules
I am developing a tool using Angularjs, but I am constantly picking it up, I need to reuse code from different modules and files, but it is not working properly. With pure javascript, it’s easy to…
javascript angularjs oop dependency-injection angular-moduleasked 9 years, 3 months ago Victor Siqueira 638 -
3
votes1
answer351
viewsInsert dynamic filter into an Angularjs Expression
I am trying to insert a dynamic filter according to a field of an object in the ng-grid. I tried so many ways and I couldn’t: $scope.gridOptions.columnDefs = [ { displayName: 'entity.tipoPessoa',…
angularjsasked 9 years, 8 months ago Vitor Vezani 491 -
3
votes1
answer303
viewsAngular, use same Cope between controls
A question for an expert in angular, for me to use a Scope in several controllers of a module, I can only with service(factory) and or rootScope? I’m in a bit of a bizarre situation. We have a…
-
3
votes1
answer80
viewsInput with the date of the respective day, without being able to be edited
I need an input to come with the date of the respective day, for example today: 17/11/2015, tomorrow 18/11/2015. This input cannot allow edits. My code is like this: <label class="item…
-
3
votes1
answer3161
viewsSynchronize Local Database from Remote Server on IONIC
Personal how to update a database in a mobile application every time the remote database is updated. For example I have an application in Ionic, and to get faster I use the database of contacts…
-
3
votes1
answer2361
viewsHow to put mask on table with angular?
How to put monetary mask in a table ? For inputs I used the directive ui-money-Mask, but I need to put in a table cell. <td>{{item.valor}}</td>…
-
3
votes1
answer61
viewsHow to be notified when there are grid changes - Angulasjs ui-grid
Is there any way to know if the grid has finished upgrading lines, or even finished loading them ? I tried to do it this way: $scope.gridApi.core.on.filterChanged($scope, function() {…
-
3
votes0
answers171
viewsValues set on top of Angularjs graph
I have some charts with angular-Charts where values only appear when I hover the mouse over: I would like these values to be fixed on top of each respective area of the graph. I have already…
angularjsasked 9 years ago DiegoAugusto 8,694 -
3
votes1
answer93
viewsProblem ng-click with Angularjs
I have a button: <a ng-click="like">Gostar</a> When someone clicks on it, perform the action and it is replaced by jQuery by the other button: <a…
-
3
votes0
answers172
viewsEmbedded application with Javascript and Angularjs
all good? I am in need of a light. I will describe a brief scenario: Imagine a FLASH application (for viewing videos, streaming, dynamic media, etc.) and C (memory control, internal http server for…
-
3
votes4
answers18668
viewsJavascript money format with Angularjs and jQuery
Good morning, everyone. Next, I need to make when the user leaves with the focus of the field or when typing it format this field according to the format of money, first in the Brazilian format.…
javascript jquery twitter-bootstrap angularjsasked 9 years, 6 months ago Giancarlo Abel Giulian 3,999 -
3
votes1
answer578
viewsFilter no ng-repeat filter the parameter I passed in get
Hello, I am passing a parameter through my route and need to rescue records with this parameter through an ng-repeat. $routeProvider.when("/detalhe/:placa", { templateUrl : 'view/detalhe.html',…
-
3
votes1
answer588
viewsRepeat element with ng-Repeat
I have a form, which can be inserted another group of "Name" and "Agency" just by clicking the button. I am using Angularjs and ng-Repeat to repeat the fields the moment I click on +. However, the…
-
3
votes1
answer181
viewsAuthentication / Permissions with MEAN Stack
I’m studying the MEAN stack, I’m really enjoying it, and I’m developing simple applications, but I couldn’t find something that would really help me understand better about authentication and…
-
3
votes2
answers1104
viewsRegex string javascript
I need a regular expression that removes all special characters, and spaces of a string if it is an accented letter remove only the accent. Someone would know to help me ?
-
3
votes1
answer898
viewsPlace local Json in external Json $http Angular / Ionic
I want to pull this Json data from the Service by an External Json via $http. I found several examples plus they are not returning result to me. .service('ProdutosService', function($q) { return {…
-
3
votes1
answer70
viewsHow to display the error coming from Mysql?
I made the code below, and works perfectly, but in case Mysql returns some error, as I will know? I have no idea, someone can help me? The message should return on alert, but I managed to create the…
-
3
votes1
answer824
viewsSpringboot and Angularjs routes
I am trying to put url friendly to take the '#' of the angle url, I followed the following tutorial: /spring-boot-as-a-backend-for-Angularjs/ and it worked in the statistical url. But if I do this…
-
3
votes1
answer1172
viewsReturning JSON from a Factory to a controller with Angularjs
I’m starting to study angular more deeply, and am having problems processing JSON data into a Factory and passing them to a controller. My idea is: A simple app, just for study, where I type the…
-
3
votes2
answers312
viewsSort Vector Increasingly with Angularjs
$scope.auxiliar.minimo = $scope.blocos[i].tamanhoTotal - processo.tamanho; $scope.auxiliar.posicaoBlocoLivre = $scope.blocos[i]; $scope.menores.push($scope.auxiliar); I want to sort my vector…
-
3
votes1
answer54
viewsObjects in javascript
When we work with objects in javascript, and with the Angularjs framework, where we write the code of the objects? For example, I’m going to create an object that looks something like this: var…
-
3
votes1
answer88
viewsProblem with json in Angularjs
I am developing a mobile application and am rescuing from the database a list of data. What happens and between each die always remains one , "comma" and do not know how to remove. I leave below a…
-
3
votes1
answer257
viewsVisible constant throughout the application
Hello, I’m developing the frontend for a API that I developed and I have a little problem, the URL of my API I am defining in all modules I use, I would like to create a global constant for the…
-
3
votes1
answer434
viewsUndefined Object
I’m having problems with an object on Node.Js with Express.Js. He is reporting the following error. Error: Route.get() requires callback functions but got a [object Undefined] at…
-
3
votes1
answer250
viewsHow indexing works with searchers using Angular JS
How searchers index displayed content with angular? I researched it and found that apparently Google reads Javascript according to this matter. But that’s really true? I was browsing and look what I…
-
3
votes2
answers7273
viewsResponsive side menu with button
I have a side menu: I would like to put a button to hide and show this menu, and when I turn down the resolution this button appears so I can display it. HTML: <div id="wrapper"> <!--…
-
3
votes0
answers4730
viewsAngularjs or JSF which to choose?
People the development team of the company where I work is deciding which technology to use for a web project that is to come. Some points were analyzed and we were in doubt between these two…
-
3
votes1
answer2166
viewsWhy do native angular directives start with NG?
I always wondered that, but I finally had the courage to ask: What is the meaning of NG in the libraries of the angular? Apparently it has nothing to do with the word Angular prefixed NG. Is there…
angularjsasked 8 years, 6 months ago Wallace Maxters 102,340 -
3
votes1
answer271
viewsState Machine with Angularjs
I’m having trouble implementing a state machine using Angularjs.. On my first try, I tried using this one made in JS: https://github.com/jakesgordon/javascript-state-machine I could not make it work…
-
3
votes2
answers229
viewsCheck data according to the ready information
I would like to make this form check the following data by clicking "Confirm" and if any of them is correct it will go to the next page. MOCK: $scope.cliente = [{ nome: "nomeedit", senha:…
-
3
votes2
answers171
viewsHow to fix this error correctly?
Error: [$injector:unpr] http://errors.angularjs.org/1.4.5/$injector/unpr?p0=%24scopeProvider%20%3C-%20%24scope%20%3C-%20LogUserService at Error (native) at…
-
3
votes1
answer3287
viewsAngularjs and Java backend
Hello, I am ceasing to use the JSF framework to start using Angularjs. I wonder if someone has an example of integration between Angularjs with Java Back-end, so I can see how the Front-end…
-
3
votes2
answers981
viewsHow to allow html tags to be executed from an angular variable?
I am consuming data from an angular api, the api is returning me the following value with HTML: variavel = '<p>testo de retorno</p>'; When I do the view view type {{variable}} is…