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
-
5
votes1
answer10841
viewsAngularjs Difference ng-show and ng-if
What is the difference between using ng-if and ng-show/ng-Hide ?
angularjsasked 9 years, 8 months ago Letticia Nicoli 304 -
5
votes1
answer91
viewsDynamize title with Angularjs
I want to dynamize my title page with Angularjs. It is currently static: <title>Workspace</title> I wonder how I can change that name, based on what’s written on database. Currently in a…
-
5
votes1
answer435
viewsAccess through Javascript/Jquery an element that came through AJAX after DOM LOAD
I am developing a WEB APP with Angularjs, there is an element that is coming to the DOM after its loading (load), I am trying to write an event : $('elemento').click() But when finished rendering…
-
5
votes2
answers3128
viewsAngularjs - accents
I’m using AngularJS and Wamp Server. In the program I am doing I have an array: ($rootScope.fruits = ["banana","maça","laranja",'época'];) That you’re giving the seats a problem. So I put in the…
-
5
votes2
answers1021
viewsHow to restrict access to routes in Angularjs?
How do I restrict access on some routes, and allow logged in users to access your content in Angulajs.
-
5
votes2
answers66
viewsShow or hide a pregnancy option, whenever the user selects in the registration that is female
How do I make a patient registration page appear or hide an option to tell if the patient is pregnant or not. The option would only appear if the user checked the Female option. The image below…
-
5
votes2
answers3335
viewsSelect with angular loading blank value
Well I want select to start with a selected value, this value already comes in my ng-model: <label class="format">SELECIONE:</label> <span class="format"> <select name="grupo"…
-
5
votes1
answer264
viewsError validating login and redirecting to home
I am using wamp 2.4 and trying to implement an Angularjs login. However, when I click the button submit occurs the refresh page but it does not change to the home. The session is always recorded…
-
5
votes1
answer8620
viewsWhat is $Scope for. $apply ?
I saw in a code $Scope. $apply that uses Angularjs, what does it serve ? In the context it is in this way: var a = function(param){ $scope.$apply(function(){ var image =…
-
5
votes3
answers895
views -
5
votes1
answer752
viewsError with Asp.NET Web.API + Angularjs
I have my method C# thus [ResponseType(typeof(Categoria))] public async Task<IHttpActionResult> Post(Categoria model) { if (!ModelState.IsValid) { return BadRequest(ModelState); } if…
-
5
votes1
answer157
views3D Visualization at Angular Google Maps
Preamble I use Angular Google Maps to indicate the location of several buildings in the campus from a university. My initialization is as follows: $scope.map = { control: {}, center: { latitude:…
-
5
votes2
answers1057
viewsAngular route link does not work on bootstrap
Person I’m having problem in the menu. The links made in Bootstrap are not bringing my angular routes. If I put the command in the navigation bar goes well. I’ve researched several things and…
-
5
votes1
answer312
viewsCapture image by url
I have the following url: http://ddragon.leagueoflegends.com/cdn/6.3.1/img/champion/{{name}}. png Replacing the word nome by a specific name and navigating to the page in question the site shows an…
-
5
votes2
answers1327
viewsWould it be feasible to save session user data in Sessionstorage?
Save user data to SessionStorage is a good option? For example, the user enters with the login and password I do the authentication on back-end and return the entire object, then store that user in…
angularjsasked 8 years, 9 months ago DiegoAugusto 8,694 -
5
votes1
answer1853
viewsAdd new element to the array
I have a record of multiple contacts, in which each contact can have one or several dynamic fields. It is possible to define the name of these fields, and they are different between contacts. For…
-
5
votes3
answers1134
viewsHow to access the $Cope variable?
I wonder how I can access the contents of the variable scope in Angularjs? Theoretically I did everything "correct", ie declaring the variable in controller and assigning values in it: var app =…
-
5
votes2
answers711
viewsWhere to put the business rule at the angle?
I love programming web and mobile apps with Angularjs. But I’m tired of spreading my business rules by controller and factorys. I miss being able to create my objects with their respective…
-
5
votes2
answers419
viewsIs it possible to restrict access to variable information with Angularjs?
Hello, I am new to development and would like to know if there is any way to hide information from variables in Angularjs , I am using a Mongolab API and did not want to make my apiKey visible to…
-
5
votes2
answers868
viewsIs there a way to open an HTML page within a modal? How?
I have the following code that opens a modal: <div class="uk-modal" id="new_task"> <div class="uk-modal-dialog"> <div class="uk-modal-header"> <h3 class="uk-modal-title">{{…
-
5
votes2
answers3456
viewsHow to get parameters in the URL through Angularjs
Guys I have a URL as follows "test/#/app/product/2" and I wanted to take this number at the end of the URL and use it to make a condition as I do to bring this ID?
angularjsasked 8 years ago Alfredo Lima 484 -
5
votes1
answer336
viewsDiscover the User Hostname
I have an application Running with Angularjs where I need to know the name of the machine (user) that is accessing the application. Someone has already had to do this with javascript? Note: The…
-
5
votes1
answer562
viewsDo I really need to have the src and ng-src attributes in the IMG tag? What is the function of each?
I saw here that we have the creation of tag <img> with the attributes src and ng-src. It really needs to be? Even more that here the two attributes have the same value.…
-
5
votes2
answers616
viewsDelete placeholder value in input by clicking Angularjs
Does anyone know how I can erase the value of placeholder by clicking on the field using only Angularjs? Example: When you click, automatically add the word name. <input type="text"…
-
5
votes1
answer317
viewsError while uploading an Angularjs+Vraptor file
I have a system where I can upload files through an Angular library (ng-file-upload), but if the file is larger than 3MB when I try to upload I have the following errors: GRAVE: Servlet.service()…
-
5
votes2
answers136
viewsComplex type bind with Angularjs
I am studying Angularjs and Asp.net MVC and could not bind a property CPF class Person when performing a POST: Classe Pessoa: public class Pessoa { protected PessoaFisica() { } public Int32…
-
5
votes2
answers582
viewsHow to minify project in Angularjs?
When I do the minification at the angle everything stops working
-
5
votes1
answer1207
viewsHow to access a specific http header?
I have a Rest API in Java, which makes use of JWT to authenticate users and generate tokens to access their resources. I have an application in Angularjs, which should consume these resources, but I…
-
5
votes1
answer855
viewsHow to filter with ng-repeat?
I have two <select>, i.e., a handmade picklist(multiselect). In the first <select>, I want to show only the customers brought by ng-repeat but containing the field…
angularjsasked 8 years, 9 months ago Leonardo Leonardo 283 -
5
votes1
answer1165
viewsLocate nearby restaurants registered in the database through google maps
I could use some help. I have a PHP system with a mysql database with several registered restaurants, with fields such as: id, name, address, longitude and latitude and I am creating an application…
-
5
votes4
answers9608
viewsHow to select more than one item in a Select Option
I need to choose more than one option in a select. For example, I could have a checkbox inside the select but I don’t know how to do it, can help me? <div class="col-md-3"> <label…
-
5
votes2
answers636
viewsRequest of type Options
My question is, whenever I make a request before it is actually sent a Options request, I wonder what it’s for exactly. What impact can I have by removing this request both on performance(internet)…
-
5
votes1
answer1166
viewsDifficulty navigating between views using Ionic Framework
recently start in Ionic, and I believe that as a beginner doubt, I’m having some questions about opening pages, ie, browse between my views in case there are 3 would be them, the home, Pag1, pag2,…
-
5
votes2
answers1955
viewsHow to insert HTML code into a textarea?
I would like to know how I can put an HTML code in a textarea, because I have a textarea that receives data from DB dynamically by date filters. ex: <textarea maxlength="8000" rows="15"…
-
5
votes1
answer497
viewsWhere and how to save the API authentication token?
Hello, I’m with an angular application, which will consume a API. For that to happen, I must send one POST to another API, which serves only to generate a token that I will pass on all other…
-
5
votes2
answers1513
viewshow to change the type of graph using Chart.js?
Guys I’m developing an application that helps me build graphics, and I was thinking about doing it in a way where the graph is built dynamically as the user inserts information, the first of them…
-
5
votes1
answer504
viewsAngularjs - What is the best practice when uploading images?
I implemented this solution to upload images: MaquinaResource.save($scope.maquina, function (data, responseHeaders) { var formDataImage = new FormData(); for(var i = 0 ; i < $scope.images.length;…
-
5
votes1
answer123
viewsProblem when trying to connect to a Signalr+Angularjs Hub
I have a little project with WebApi,SignalR and Angularjs where I do some queries and inserts in real time. Everything works fine when I start the file index.html right when running the application,…
-
5
votes3
answers2776
viewsHow to fill a select with angular using materialize
I’m trying to fill in a select with data from my groundwork the problem is that I always have to select the select one time for the data to load. How can I solve this problem? HTML <form class=""…
-
5
votes3
answers1083
viewsHow can I create a filter to fill with zero left at the angle?
I’m developing an application using Laravel and AngularJS. I always found it difficult to format a number to fill with Javascript zeros, so I chose to use Laravel to bring me the field number id…
angularjsasked 8 years, 1 month ago Wallace Maxters 102,340 -
5
votes3
answers1764
viewsIonic - Display side menu in all view except main page
Hi. I have a problem regarding the side menu of Ionic. I need to display it in all views except the first one. I tried to put all views with the side menu, and give Hide on the menu button on the…
-
5
votes0
answers315
viewsWhat is the best way to get authorization with JWT?
I asked this question earlier, but I believe I did not express myself correctly. So I am reformulating to try to be clearer. I have several Rest API, where I use basic http, to avoid direct access.…
-
5
votes2
answers8717
viewsHow to restrict the filling of only numbers in an input with Angularjs?
I noticed that the page has the following code for an input: <div class="form-group required col-md-3"> <label for="area" class="control-label">ÁREA(ha):</label> <input…
-
5
votes3
answers1936
viewsHow to pass dynamically changed value to function, in Angularjs
The fields itemCodigo, itemDescription, itemPreco and itemQuantidade are filled dynamically (at runtime, without refresh) from a query performed in the database. However, these values, when passed…
-
5
votes2
answers261
viewsHow can a Function expect the result of $http?
I’m having trouble with the following code: $http({ method: 'POST', url: '/publicacao/', data: $scope.publicacao, headers: {'Content-Type': 'application/json'} }).success(function(publicacao) {…
-
5
votes2
answers1163
viewsSecurity Application Angular
I have questions about safety, I will exemplify : In my front, in my controller have that method: $scope.getAllpessoaGrid = function (strPesquisa, tipopessoa) { $scope.progressbar.start();…
-
5
votes1
answer93
viewsCheck if user is logging in from within the company
I will not go into details of the technology used, because the doubt is more on the best way to resolve this situation. I have the following scenario: Company with several subsidiaries; These…
-
4
votes2
answers6542
viewsCurrency mask problem in input
I have a problem with the coin mask with Angularjs. I found this thread in Stackoverflow in English. The mask works beauty by typing in input and arrives right in the controller, but when I send…
-
4
votes2
answers758
viewsAngularjs + Sharepoint + Rest API
People I am currently trying to develop a script within Sharepoint using the Script Editor but it is falling into the error of my code, as if the connection was not correct, however, in google’s…
-
4
votes3
answers7017
viewsUpdate $Scope in Angularjs
Guys the problem, in a general way, is that I can’t take information received in a controller and apply it in my html, when I try instead of printing the variable on the screen becomes empty, when I…