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
-
6
votes1
answer7712
viewsHow to use Angular UI Router? and what are the advantages?
How to use Angular UI Router? and what are the advantages ? What are the long-term advantages of using it and not the standard of Angularjs?
-
6
votes1
answer248
viewsUse Angular routes straight from HTML file
I need to develop an offline app where it will be accessed directly from the HTML file, as far as I know Angular needs the HTTP protocol to perform the routes yet. Ex.: The URL will look like this…
-
6
votes1
answer856
viewsHow to separate HTML files into a MVC architecture?
I have an application that uses Angular.js, which I started using now and never understood how to apply the concept of MVC to a project. I have two HTML pages, veiculo.html and index.html, both are…
-
6
votes3
answers1954
viewsProblems adding item to array with Angularjs
I’m putting together a shopping cart with dynamic options with Angularjs. The problem is here: { "14": [ { "id": 3, "forma": "Alface", "preco": 1 }, { "3": 1 } ], "15": [ { "id": 3, "forma":…
-
6
votes2
answers4720
viewshow to pick up an object from an array through id with Angularjs
I pass the id of the object coming from an ng-repeat through the $stateParams more later I would need to take the object of the array referring to the id coming from the URL to display the…
angularjsasked 9 years, 8 months ago Matheus Monteiro 151 -
6
votes1
answer4961
viewsHow to upload Angular js files
wanted to know now how to grab and send the file to url I want to upload.…
-
6
votes1
answer1395
viewsHow to make a layout template with Angularjs?
need a standard template for all screens of my front-end application how do I do this with angular-js? have as?
-
6
votes2
answers365
viewsProblems sending data to the Ionic database
I made a web application, with Angularjs and PHP, here on my computer, where I registered users and emails in the database and works perfectly. I’m trying to do the same with Ionic, but when I try…
-
6
votes1
answer161
viewsWhat is $Scope.Answer?
I’m new to Angularjs, I would like to understand what $Cope.Answer is really for, I didn’t find anything in the official documentation or on the web, I just saw it in an example I took in a…
-
6
votes1
answer301
viewsHow to stream audio with Ionic?
I need to stream audio with Ionic, I’ve installed several plugins but streaming does not work, using http and rtsp protocol. I also tried to put a Javascript function inside the index of the app but…
-
6
votes2
answers9320
viewsHow to format the date of an input[date] in the format dd/mm/yyyy'?
I have a page, built with Angularjs, that possessed a input[type=date]. Basically, what I want is to take this date and format (i.e., display to the user) using the format 'dd/MM/yyyy' (for example:…
-
6
votes2
answers241
viewsWhy does Steam api refuse Angular calls?
I am simply trying to feed my application data from the Steam Api. Let’s take this example:…
-
6
votes1
answer1428
viewsInfinite scroll in Angularjs with external JSON
I’m having a bit of trouble creating an infinite scroll in Angularjs from a JSON file generated on an external site. What I need is for the infinite scroll to be called when the variable item posts…
-
6
votes2
answers4341
viewsWhat is the best way to log in with Angularjs
In an app using Angularjs and Ionic, what’s the best way to authenticate in an API? I log in to all screens or use some session mechanism? I imagine that authenticating all controllers may consume…
-
6
votes1
answer476
viewsHow to use Angular JS and Laravel 4 without conflicting with Blade?
I would like to know how to configure Laravel 4 to use Angularjs without conflict with Blade, since the interpolation tags are the same?
-
6
votes3
answers1728
viewsHow to recover information from database by id on Ionic?
I have an app I’m developing on ionic and angularjs I’m using routes and I’m fetching the data from a database on a remote server, I have a page where and listed me several categories and each…
-
6
votes1
answer493
viewsHow to recover the page HTML generated with Angularjs via C# ?
How to recover HTML code from a page that uses Angularjs to process some information and generate a graph? I was able to easily recover the HTML code using Webrequest as demonstrated in the example…
-
6
votes1
answer726
viewsOpen my App from a link sent via email
I am trying to get the user, by clicking on the link received via email, to be redirected to a specific view of my application. It would be something like: 'myapp://app-custom-path'. I’m using…
-
6
votes2
answers1577
viewsSecurity with Angularjs and Rest
I’m starting with Angularjs and Rest (Java JAX-RS) and I’m having a doubt. The functions responsible for Rest requests are easily viewed via the browser by right-clicking Exibir código fonte da…
-
6
votes1
answer2741
viewsLogin/Authentication with Angularjs and PHP
Well, I’m making one WebApp where I have a login page before accessing the app and within the app I have some restricted areas. The Webapp is running everything right, but I ended up getting stuck…
-
6
votes1
answer1597
viewsHow to make an http request in Angular, and have functions that return all JSON elements or just one passed by parameter?
I’m new to Angular and Ionic, and I want to build a Factory that gets a JSON from googleapis, and contains two functions, one returns all elements, and the other returns the element that is passed…
angularjsasked 9 years, 1 month ago marcosmfjunior 153 -
6
votes3
answers2015
viewsHow to create a controller service?
Hello, I would like to know if it is possible with this code to create a service. Because all the videos I see they only create services for things that will be duplicated in code and so on or from…
angularjsasked 9 years ago Larissa Mourullo 417 -
6
votes2
answers2567
viewsHow to format a date displaying the month name in angular?
I have an object Date on my Angular controller. $scope.date = new Date; I would like to format this date in the view to display the name of the month in full. I want the name to be displayed in…
angularjsasked 8 years ago Wallace Maxters 102,340 -
6
votes3
answers482
viewsWhy does Angularjs default to # in the URL?
I have a question and I would like to know why Angular uses # at the url?
angularjsasked 7 years, 11 months ago Miguel Batista 2,812 -
6
votes2
answers913
views$http.get with Angular JS
searching for data from an api through $http.get, but I find an error. My request within a service: app.service('pessoas',function($http){ this.getHumanos = function(callback){…
-
6
votes1
answer696
viewsAngularjs duplicating (briefly) ng-repeat list while making new insertions in the bank
I’m working with an application where in a view I own the product register of a company, or its customers, suppliers, etc. Each view meets a specific area, but each view works with diverse data and…
angularjsasked 8 years, 12 months ago celsomtrindade 8,038 -
6
votes2
answers382
viewsWhich means [] in angular.module
I’m a beginner in Angularjs and started reading about modules in an application. When I want to create a new module, I write the following line of code: var myAppModule = angular.module('myApp',…
-
6
votes1
answer278
viewsBlock Scroll on one side of the grid
I divided my page with a grid, where the smallest part I put items q direct to page locations, I wanted to know how to let this smaller fixed part and the scroll work only in the largest part of the…
-
6
votes1
answer3999
viewsHow to consume a SOAP Webservice with Angularjs?
Well, I have a SOAP Webservice that is consumed normally by a PHP client, working perfectly... by ajax this php consumption and populate my template.. My current application makes the following…
-
6
votes1
answer218
viewsHow can I force a directive to work only if it is within a specific directive?
I am trying to make ngPanelHead, ngPanelBody and ngPanelFoot directives need to be within the ngPanel directive, otherwise an error is presented on the console. I tried with require however it is…
-
6
votes4
answers1662
viewsComparing and updating data from an HTML table with data returned via JSON?
Problem: I have a table that is populated by data coming from multiple JSON files, so far no problem. The point is, I need to update the data if the values contained in JSON are different than in…
angularjsasked 7 years, 9 months ago Fábio Jânio 3,407 -
6
votes2
answers297
viewsWhy does href not work as desired?
I am using a special Theme in my application that has a chat feature. To open this chat the template uses the following reference href="#offchat-canvas" to an element in my view. This chat is a…
-
6
votes1
answer2111
viewsProblems to sum values using Angular JS
See the final result: <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <!--inserindo a meta tag de keywords onde definimos as palavras…
-
6
votes1
answer12988
viewsGet the $index of an ng-repeat that contains an ng-controller in $Scope in Angularjs
I have an app that uses a ng-repeat to list information. Like this: HTML <div ng-controller="listaCtrl"> <div ng-repeat="item in lista" ng-controller="itemCtrl">…
-
6
votes3
answers1020
viewsHow to send data from a form received from an ng-repeat with Angularjs
Hello, folks maybe my question is not enlightening, but I’ll try to enlighten here. I have a code in Angularjs and html, if it is a form, which receives the data in array/json format, and populates…
-
6
votes1
answer3874
viewsWhat is the importance of using "track by" in "ng-repeat"?
Whenever I see any article on the internet on how to optimize the render time of ng-repeat, I see comments on the option track by. Example: <div ng-repeat="task in tasks track by…
-
6
votes1
answer1124
viewsHow to filter with ANGULAR JS not to repeat equal names?
I have 2 related tables in the bank: The first table: it is called restaurant to another table : Cardapio . The Cardapio Table receives the primary key of the restaurant so it becomes foreign until…
-
6
votes2
answers475
viewsAngular locking GET form Submit
I have a form where I send a query to the current url, through parameters GET. For example, I have url/teste, when sending the query via this form, will url/teste?term=minha+consulta. I didn’t use…
angularjsasked 8 years, 3 months ago Wallace Maxters 102,340 -
6
votes0
answers252
viewsCreating a multi-level structure for components in Angularjs + ES6
I am creating a robust application using Angularjs on ES6 and I need to assemble a structure so that the logic of the application components is organized. Basically, my application works with…
-
6
votes1
answer5709
viewsHow to use $broadcast(), $Emit() and $on() in Angularjs
I understood that the $emit() and the $broadcast are emitters and the $on is an event manager. I am working with unit tests and am unable to access the following function: eventHandler.service.js…
-
5
votes2
answers329
viewsTest results do not appear in browser - Grunt-karma
I’m using Grunt and karma to test my project. But when I use the Grunt test command, the results do not appear in the browser nor in the command linda. The only thing that comes up is this: This is…
-
5
votes2
answers2135
viewsHow to replicate elements dynamically?
I’m trying to create a series of repeated elements without knowing the amount of repetitions that will be needed. I have an input in which the user will report a numerical value above or equal to 1…
angularjsasked 10 years, 6 months ago user3388 -
5
votes1
answer549
viewsAngularjs, how to change the bracketed tags ({{ e }}) to any other character of your choice?
In the Angularjs by default comes the brackets tags ({{ and }}) for handling, wanted to change to %% and %%, how should I proceed ? Example: {{name}} for %%name%%…
angularjsasked 10 years, 5 months ago user6026 -
5
votes1
answer862
viewsJavascript Startup of Objects
I’m new to Javascript, and I’m using a framework Restangular written with Angularjs for HTTPS requests. I’m having a hard time initializing a literal object, with the following structure:…
-
5
votes1
answer1036
viewsTranslate datepicker Kendo UI with Angularjs
I need to translate the Kendo date Picker for English, I already insert the i18n file into my html but it didn’t work, I did the same at angular and it worked with angular my html <head>…
-
5
votes1
answer1306
viewsDynamic menu using Angularjs
I have an application that has a menu at the top and another on the left side. Menu items must be filled with BD data according to access profile. However, the menu is not being rendered when there…
angularjsasked 10 years ago Letticia Nicoli 304 -
5
votes1
answer311
viewsHow to find the height of a dynamic element with Angularjs?
I have a menu with accordion effect I need to find out how high this menu, remembering that the height is dynamic, IE when it has some open element it gets bigger. After that it is necessary to…
angularjsasked 9 years, 9 months ago Bruno Laise 163 -
5
votes2
answers4683
viewsAJAX post request with Angularjs
Hello, I wanted to know how I make a requisition POST for a url with Angularjs and also wanted to know how I transform a normal javascript object for a json, to send in this request.…
-
5
votes1
answer535
viewsProblem with ng-click + Angularjs menu
I have a menu that is filled in dynamically: <div ng-controller="menuDinamicoController as vm"> <div ng-show="isAutenticado"> <img src="{{vm.fotoUser}}" id="imagemUsuario"…
-
5
votes1
answer1487
viewsReuse function in 2 different controllers
I have the same function in 2 different controllers. This is not good practice because it will complicate code maintenance. How do I reuse the same code on different controllers? Using "Factory",…
angularjsasked 9 years, 8 months ago Filipe Moraes 8,737