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
answer886
viewsEnable/Disable Angularjs buttons with values coming from the api
I have my following screen : The side menu comes from an Api List with user permissions have my classes: public class Menu { public int Id {get;set;} public string Nome {get;set;} } public class…
-
0
votes1
answer252
viewsng-switch + Function
Good afternoon, I’m trying to use the ng-switch to display a value that depends on a condition that is in a function, but I can only pass fixed values to the field, the function with if does not…
-
0
votes2
answers93
viewsDoes not pull a certain Array value
I have a little problem in Angularjs I need to pull the array values angular.module('app', []) .controller('Ctrl', ['$scope', function($scope) { $scope.data = [{ a: 1, b: 2, c: [{ d: "z", e: "4" },{…
angularjsasked 10 years, 2 months ago Dener Troquatte 3 -
0
votes1
answer607
viewsPick up complete array with Angularjs
Template <input type="text" data-ng-model="item.title" list="comicstitle"> <datalist id="comicstitle"> <option data-ng-repeat="ttl in titles" value="{{ttl.name}}">…
-
0
votes1
answer210
viewsTwo-way bind does not work if the model is something like ng-model="record.name" for Kendo UI Controls
I have a problem with Kendo UI Controls my HTML <input type="text" ng-model="record.name" kendo-numeric-text-box /> <input type="text" ng-model="record.name"> </input> <button…
-
0
votes1
answer57
viewsHow to use Named Parameters in Angularjs $http?
Is there any way to use named parameters in the method $http angular? With ngResource it is possible to do this: var User = $resource('/path/to/user/:id'); $scope.user = User.get({id: 1}, function()…
-
0
votes1
answer1275
viewsSearch for element in an array using array.foreach
I have a grid where on each line there is a button to delete the corresponding data. This grid is powered by a json but there is no id. I wonder how I could delete the selected object, being that…
-
0
votes1
answer360
viewsReceive parameters in $state
In the app.config I have the following $state: .state('app.users.edit', { url: "/editar/:uid", views: { 'content@' : { templateUrl: 'view/users_edit.html', controller: 'users_edit', resolve: { auth…
angularjsasked 10 years ago Filipe Moraes 8,737 -
0
votes1
answer132
viewsKendoui stops working by separating Angularjs into a file . js
I am trying to create a simple project of Kendoui + Angularjs. When I use the code below, everything works normal: <!DOCTYPE html> <head> <title>AngularJS</title> <meta…
-
0
votes1
answer1011
viewsHow to use an ng-class in the <html> tag
I’m using the Angularjs framework and need my tag to receive a dynamic class example: <html lang="en" id="ng-app" ng-app="app" ng-class="app.title"> </html> This app.title will receive a…
-
0
votes2
answers1029
viewsRun plugin after ng-view is loaded
I’m using the Locastyle framework for development, so it performs certain functions of plugins like jquery.mask.js and applies in the required elements. However, sometimes it happens that the plugin…
-
0
votes1
answer724
viewsCapture value from an email-like field at js
I have the following HTML code with Angularjs: <html ng-app> //... <form name="myForm2"> <input type="email" id="email" name="email" ng-model="formData.email" required/> <span…
-
0
votes2
answers3400
viewscustom filter with Angularjs
Talk people, I have the following problem, I have a list of names: $scope.names=["Max", "Tom", "Ralf", "Jerry", "Snow", "Carl"]; I made a normal filter for input search <ul> <li…
-
0
votes1
answer953
viewsHow do I add an animation while loading a request?
I’d like to know how to use Interceptor in a $http request from my project. The animation you’d like to run while the request is being made is a loading done in css. Could someone explain to me…
-
0
votes1
answer463
viewsDoubt modifying HTML tags with Angularjs
Would someone like to tell me how I can change an html tag with angular, like if I added an ng-model tag and from that I could change the properties of the tag like class, id, text and etc...
-
0
votes1
answer71
viewsAngularjs Directive using class
I need to create a directive but for the sake of organization I would like to do it in a class, but it’s making a mistake that I can’t identify. Here’s what I got: My class: class MyDirective…
-
0
votes2
answers85
viewsRescue 2 arrays with Angularjs
angular query app.controller('recipedetails', function($rootScope, $routeParams, $http) { $http.get('app/querys/receita_item.php?id='+$routeParams.id).success(function(data) {…
-
0
votes1
answer233
viewsRouting with "id" parameter ends on white page
When I routing with id parameter ends on white page. http://denertroquatte.com.br/app My app starts appears the posts, so I click on the post it goes to the other page and "was to appear content"…
-
0
votes1
answer337
viewsModify <title> with Angularjs through a form
I have the following code: <!-- define-pageTitle --> <div id="shareContent"> <p class="subtitle-app mt30">Define title page</p> <form onsubmit="return false">…
-
0
votes1
answer967
viewsSave, Delete and Get in Angularjs
I am making a false "CRUD" in Angularjs and I am having problems in save, delete and get functions. Only query() function worked. Can you help me, please? I saw that the reason is something related…
-
0
votes0
answers428
viewsError generating Ionic apk debug
I’m generating the apk with : ionic build android so far so good from BUILD SUCCESSFUL and when I use: ionic emulate android also from BUILD SUCCESSFUL more when emulates only a white screen! in…
-
0
votes3
answers1278
viewsVariable appearing as html - IONIC FRAMEWORK
I’m starting at Ionic, I followed this tutorial, all right until then, however, when I go to index.html and put the variable {{firstname}}, in the browser it shows as if it were going through html,…
-
0
votes1
answer530
viewsProblems with Xmlhttprequest Angularjs
I have a $http.get request in my application as seen on Angularjs ng-repeat does not return data, always returns empty However I am receiving a Warning in the browser console with the following…
-
0
votes0
answers195
viewsSync issues when sharing objects with Factory and $watch
I am trying to make a list of places by neighborhood. This data comes from different Urls: www.example.com/api/lugares/bairro/1 www.example.com/api/lugares/bairro/2 the ID neighborhood is generated…
-
0
votes2
answers5596
viewsHow to run a function after Angularjs renders content in the template?
I would like to call a function after Angularjs renders the content in the template, just as it removes the display:none when using the ng-cloak. function executaAposRenderizar(){...}…
-
0
votes1
answer181
viewsJavafx Webview does not receive 200 messages from AJAX
I am using the Restlet library that allows you to use Restful services without needing an external server. Webview and Browser Code: public class View extends Application { public static void…
-
0
votes1
answer153
viewsProblems with ngModel required in directive
I’m having a problem with my directive, she gets one ngModel to insert a value that exists in a text field within it, but when that model already comes with some value it simply disappears with it.…
-
0
votes2
answers410
viewsLoop Loop in Angularjs Cat Types
How to create a dynamic form at the angular, this form is composed of categories and types. It was supposed to create a tab with the various categories and within each category show the types. Below…
angularjsasked 9 years, 11 months ago Bruno Santos 43 -
0
votes1
answer37
viewsServer response javascript, field coming with a method/Function?
I have a service that intercepts the bank’s sponse and sends it to the angle. Some server "Sponses" comes with for example an object with a field $id: Function(), but in Sponse the id comes right,…
-
0
votes1
answer575
viewsHow to set a value in select that is mounted with ng-options
My HTML is like this: <select ng-model="cliente" ng-options="t.value as t.displayName for t in clientes"></select> In the Controller of my JS I have: $scope.clientes // objeto onde tem…
-
0
votes0
answers102
viewsSemantic UI dropdown does not work with Angularjs
I am using the Semantic UI Framework, when the resource dropdown is within the directive ng-repeat, this feature simply stops working. Someone’s been through this or something?…
-
0
votes1
answer817
viewsDoubt ajax request with angular js
Today when performing an ajax request for a url containing a json to store within an array, the vector value is only populated within the http method, and out of it from the error, I did 2…
-
0
votes0
answers59
viewsHelp Page Single Angular
I have an application with divided into several service blocks developed using Nodejs, Angularjs and Mongodb using Express. Each service block has its own services, controllers and their own…
-
0
votes1
answer414
viewsANGULARJS- NG-OPTIONS
I have the following combo: <select data-ng-model="dadosAddContaCamara.camara" data-ng-options="item.codigo as item.descricao for item in controller.listarCamara"> I need the…
angularjsasked 9 years, 5 months ago diogo silva braga 1 -
0
votes1
answer191
viewsHow do I Redirect on the route if it is the first time it runs?
My structure is like this: var app = angular.module('MainApp',[ 'ngRoute', 'mainAppControllers' ]); app.config(['$routeProvider', function($routeProvider){ $routeProvider. when('/tutorial', {…
-
0
votes2
answers1658
viewsHow to create App routes using Ionic and Angulas.js?
EDITED I was able to create routes with an example from the site itself. But I noticed that the controllers are in the same main file app.js and the views stay in the archive index.html. I wonder if…
-
0
votes1
answer315
viewsFailed to perform a request with Angular.js $http is not defined
I’m starting to use angular.js, I’m studying one. Tutorial (Definitive Guide to Learning Angularjs in One Day), but at first I had problems with the $http request. I’m getting the message: $http is…
-
0
votes2
answers395
viewsHow to extract only 1 image from Json?
Hello, I need to extract only 1 image of this Json. Here is my angular code to pull the records from the api via get. var app = angular.module('myApp', []); app.controller('carrosCtrl',…
-
0
votes3
answers366
viewsGet URL paths
The API is structured something similar to http://localhost:8181/api/collections/{id}, my question is: Sometimes I need to get this {id} and I’m doing a replace. Is there any way to set up this url…
-
0
votes0
answers60
viewsCkeckbox tagged with Angularjs
Good afternoon I have an HTML structure mounted inside an ng-repeat that creates horizontal and vertical ckeckboxes, that is, a multidimensional array. When I click on one, I have to save in the…
angularjsasked 9 years, 3 months ago Daniel Swater 1,251 -
0
votes0
answers72
viewsExaminations by Angularjs types
Good, I have a problem with my code. I was supposed to get all the tests of a certain type. <div class="box-body" id="teste" ng-app="app" ng-init="chargeData()" ng-controller="FormCtrl">…
-
0
votes1
answer32
viewsshow a second options when selected a certain value of a first option
Good Night, I am developing a system, in which depending on the option the user choose in the first option, other options will appear in a second option, this would be the options in the first…
angularjsasked 9 years, 3 months ago Luiz Fábio 333 -
0
votes1
answer216
views -
0
votes1
answer384
viewsHow to reset form status with model data?
I have a model in which fills the fields of a form (use Asp.net mvc and the view is typed), that is, I load the fields of this form according to the data of the database for the user to change in…
-
0
votes1
answer583
viewsTrolley with dynamic options with Angularjs
Personal I have the following problem: how to subtract 2 arrays with Angularjs. I’ve tried several ways and I couldn’t make that subtraction. I am creating a product cart with dynamic optional in…
-
0
votes1
answer214
viewsSend data to another tab through the "ion-option-button"?
How can I send data from one tab to another tab by clicking on the "ion-option-button" component? This target tab will have a form, the intention is to edit the data contained in a "". Data for…
-
0
votes1
answer186
viewsDirective is executed 2 times
I have the following "directve": app.directive('modal', ['$window', function ($window) { return { restrict: 'C', link: function (scope, element, attrs) { scope.onResizeFunction = function() {…
-
0
votes1
answer424
viewsAngularjs ng-click event does not work when configured in an element coming from an asynchronous request
I have a page named listDT.php that contains a Datatable (https://www.datatables.net/). I used the Datatable plugin interface to dynamically load the Datatable content. The last column of the table…
-
0
votes1
answer2505
viewsDynamically populate input with angular
Friends, help me make a script in which I can add words to an input as a button is clicked. The words should stand side by side and separated by comma: word1, word2, word3 This gives me an input, as…
-
0
votes1
answer63
viewsFilter with Angularjs and Gulp
I’m creating a filter for the angular using the compiler Gulp however I am having an error and when analyzing the compiled code it seems that is compiling something wrong, what could be? Filter:…