Tagged Questions
AngularJS is an open-source JavaScript framework. Its goal is to augment browser-based applications with Model–View–Whatever(MV*) capability and reduce the amount of JavaScript needed to make web applications functional. These types of apps are also frequently known as Single-Page Applications.
0
votes
0answers
5 views
date of birth - day filter depending on month
I am currently working on a day dropdown list for date of birth, the values in this field will depend on what month is selected. I currently have this working as shown below but I want to move the ...
0
votes
2answers
17 views
angular ng-option Option and Label
I have a Select field:
<select
id="aircraft_id"
data-id="{{( $obj->exists ) ? $obj->aircraft_id : NULL}}"
data-placeholder="Wähle ein Flugzeug"
no-results-text="'Konnte kein ...
0
votes
0answers
7 views
How to set default id as 0 for new tags
How to set a default id to 0 for the tags which is not from the list ?
[DEMO LINK][1]
LINK
In the above e.g if we select from existing, then it comes with id (1 or 2 or 3), but if add new Tag and ...
0
votes
0answers
5 views
Angular IE9 Radio button disabled state not changing
I'm having an issue in IE9 when updating the disabled state of a radio button,
in other browsers the state is updated correctly but in IE9 the radio button state the state doesn't change.
I've build ...
0
votes
1answer
12 views
Angular - ng-click on a div works only when you click on specific areas of a div
I am trying to create a div that has a bunch of disabled fields. They get enabled on clicking anywhere in the div.
I find that clicking anywhere in the div causes ng-click to be fired, while ...
-1
votes
1answer
9 views
difference between success function and Then function in angular js
Hi Can any one please help me about this service call methods in angular Js.
what is the difference between Success function and Then Function?
Which function is use in which condition
0
votes
1answer
10 views
AngularJS : input ng-model not working when in a ng-if?
I have the following code :
<div ng-controller="myCtrl">
<div ng-if="myVar">
<input ng-model="query">
</div>
</div>
where myVar is true
When the ...
0
votes
0answers
8 views
Use AngularJS in jquery dialog
I am trying to populate a popup with some user information using ng-repeat. The controller is not being even called from the pop up page. I dont know what I`m doing wrong. Can someone point me in the ...
2
votes
0answers
18 views
AngularJS Table creation with ng-repeat
I get following response from database. about array of classes where classes are nested in groups and finally students.
"Response":[
{
"Id":1,"Name":"Class 1","Location":"Building ...
0
votes
1answer
8 views
AngularJS using canvas in directive template
I'm trying to implement progress-bar with canvas using directive.
I'm elrady implement this control by JS object
Here is non-angular way:
function progressBar(id,contentDiv)
{
this.id = id;
...
0
votes
1answer
21 views
DRY usage of Common directive used across all views
If I have an angular router of say 10 views, and each view has the same banner is it redundant to have to declare the same directive that wraps the banner and its controller in each view?
1
vote
1answer
15 views
Store an object in an ngModel with a directive
I'm working with angularjs for some weeks now, and I don't get what the angularjs designers thought when designing the $viewValue and $modelValue functionality from the ngModelController. Code ...
1
vote
0answers
20 views
Manipulating table with AngularJS
I manipulate a html-table with angularjs by using directives. Everything works pretty well, but I have one problem that I can't solve and understand why it appears.
Here is my directive:
...
0
votes
1answer
10 views
Angular/Ionic : Json data working on device?
Hello my app work's on browser, but some stuff i can't see in emulator/phone.
for example :
<img ng-src="{{DefinitionCtrl.checking.feedbackMessage.img}}" class="image-definition">
the data is ...
1
vote
1answer
9 views
Sort on underlying data in ng-grid_
I have the same question with the below poster about sortFn in ng-grid:
Sort on underlying data in ng-grid
the answer give the code in Plunker:
http://plnkr.co/edit/qmBsneZ3HmFRKSkjbBWU?p=preview
...
0
votes
0answers
10 views
init value with ng-model/ng-init in simple_form collection select
I've got simple_form_for @tag in #edit action and one of the field is
<%= f.input :color, collection: %(red green blue), input_html: {ng_model: 'colorBoxValue'} %>.
Unfortunately after form ...
1
vote
1answer
24 views
How to reload css settings when ng-show hide some items
A selection on page and are used to filter the items in a table.
the table displays like this:
Here we can see the item's color is gray-dark every other row.
if I modify some of them(I modified two ...
1
vote
1answer
32 views
angular, try to display object in ng-repeat fails
i'm writing an mobile application in javascript with angularJS and ionicframework (last beta v.11), i create dinamically an object and want to display all objects inside in a ng-repeat. Why nr-repeat ...
0
votes
2answers
30 views
Cannot read property 'replace' of undefined in angularJS?
I am using emoji filter, I am getting error that "Cannot read property 'replace' of undefined".
Errro is:
TypeError: Cannot read property 'replace' of undefined
at g.<anonymous> ...
0
votes
0answers
13 views
AngularJS 1.3, ngAnimate and animate.css
Noob here :)
Trying to set an ngAnimation which basically works fine except for one annoying thing.
When the page loads the ng-hide animation is running.
How can i prevent this from happening?
...
0
votes
1answer
15 views
Angular Two way databinding and http.post issue
Objective: Two Way Databinding between database and view via scope and controller
I’m trying to post to a restful database using angular
When I click on the thumbs up or thumbs down the scope ...
2
votes
1answer
17 views
Angularjs: Why doesn't the parameter in a custom directive is undefined when bind in template?
Here is my test code:
var myApp = angular.module('myApp', []);
myApp.directive("myWidget", function () {
return {
restrict: "E",
scope: {
submitText: "@"
},
template: ...
0
votes
2answers
19 views
RESTAngular - DELETE, not working as it should
If i am not mistaken in RESTful services in order to remove a record you need to do this:
Delete a product: DELETE /api/product/id (reference)
But in RESTAngular when i do for example
...
0
votes
1answer
16 views
AngularJS directive for Word Count not triggered on user selecting text and pressing delete/backspace
I have written a directive for my AngularJS app that counts the amount of words in a textarea and if it is lower than a determined threshold I set the ng-valid item to false. All is well however the ...
0
votes
1answer
19 views
Error in angularJS
When I run my angularjs application, I get the following error message:
Error: [$rootScope:infdig] ...
0
votes
1answer
12 views
AngularJS expressions in “range” input definition
I found out, that range input supports only strings in "min" and "max" properties, and more than that, it requires that during it's initialization. Therefore, the following code doesnt work:
...
0
votes
1answer
11 views
what logic does injector use to determine which scope to pass to a controller
When I define a controller I can request scope object as a argument:
angular.module('custom', []).controller(function($scope) {});
During run-time the injector initializes the controller. My ...
0
votes
0answers
6 views
Cordova camera plugin after inappbrowser
I've got a problem with the cordova camera plugin (on IOS). My app need to login with a facebook account (for that I used the openFB lib https://github.com/ccoenraets/OpenFB which use inappbrowser).
...
0
votes
1answer
29 views
Add a class to the html element using angular js dynamically on the basis of If condition
I am implementing some default styles for a div for a "condition id" as (id="default")
<div id="student" class="student"> /* if(id == "default") */
I need to set some other styles ...
0
votes
1answer
10 views
spring security + angularjs - sending information to angularjs about privileges
I wonder how should I send information to angular about user privileges. Should I send it every time with new page or get privileges after user signed in (but if I change him privileges he will need ...
0
votes
2answers
21 views
input type text and email behaving differently inside angular directive (Two way databinding)
I'm not getting how to over come the following situation, I have a directive with two scope passed from parent as "=" denoting the model binding say attr1 and attr2 are those values.
Inside directive ...
0
votes
3answers
19 views
How to implement an auto search in angular?
I am trying to implement autoSearch in angular (+jqeuryEasyUI).
I use mongoDB as the database.
In my controller, I wrote something like that:
$scope.$watch('searchInput.text', function() {
...
0
votes
0answers
2 views
ion-scroll content remains in background after view change
I've got some issue with using ion-scroll. Sometimes, (at now, I noticed it on Android 4.2.x) when I proceed to the next ('2') view, the content from previous ('1') screen remains as the static ...
0
votes
0answers
8 views
Select2 directive callback when rendering done
I want to trigger a callback or event when my ui-select2 directive
<input
type="hidden"
ui-select2="myConstructorObject"
ng-model="myModel"
required />
has rendered the ...
1
vote
1answer
14 views
angular checkbox $watch not working
I need live update my model when I selecting the checkboxes. But when I run this code : TypeError: Cannot read property 'map' of undefined.
After I remove the map function & added ...
0
votes
0answers
19 views
Angularjs translate with jquery
I m actually facing a problem with the translation module of angularjs.
I m actually using the i18n directive, it works perfeclty for the different texts in my partial views.
However, I m using a ...
0
votes
0answers
28 views
Angularjs:-Implement on click event for controller
Hi I am a newbie on angularjs.
I was trying to implement watchlist in angular and was caught up in something.Actually in the controller I am calling the data from an api call.The below is the snippet ...
0
votes
1answer
21 views
Invoke AngularJs method from outside without need of $digest
When invoking method from outside AngularJs I need to invoke $digest/$apply, but I don't want to take care of that. Is there a good way to do that?
<button ...
0
votes
2answers
26 views
Angularjs - how to get count of 'li' in a list and width of list on-load
Check my PLNKR, as you can see there are 10 menuitem, but the count is shown as 3.
I need to count the number of li and final width of ul on-load.
Please note I need count of li only as all li will be ...
2
votes
1answer
29 views
How to use $compile service more than once?
I am using Angular and I try to add directives to a page dynamically. I use the $compile service in a controller, like this:
var element1 = document.createElement('myDirective');
var element2 = ...
0
votes
0answers
9 views
Binding issue with TinyMCE <textarea> and AngularJS scope variable
I am using TinyMCE 4.0 and everything works fine except binding with reference to this question I asked earlier and the answer .
The Problem:
I am able to bind the value into ...
0
votes
0answers
19 views
ng-grid to PDF using jsPDF or other library?
Hi I have an AngularJS ng-grid.
I am trying to find a way to use jsPDF to render it as a PDF. I have successfully managed to render PDFs of simple text and complicated SVGs via their URI...however ...
0
votes
0answers
10 views
highcharts inside ng-repeat (AngularJS)
When we have multiple charts (using highcharts) on the same page and we want to make it inside a loop. Doesn't work.
Classic case : (it works properly)
<div ng-attr-id="container1"
...
0
votes
0answers
8 views
auth0+angularjs+phonegap+inapp browser = failed loadstart event
I am using phonegap version 3.5.0
For the following code the new window is opening up but loadstart event is not triggered so I am unable to return the value to another function and close the window, ...
3
votes
2answers
57 views
optimize angularjs search filter
Here are almost 2000 rows in the page. I use AngularJS filter to search some items which contains the typed strings. The problem is that efficiency is bad when typing one character into the input ...
0
votes
1answer
17 views
Creating a custom filter in Angular
I am trying to create a relatively basic filter called "format" that removes the first two characters of a string and the last two characters of the string. I figured the best way was to return a ...
0
votes
1answer
6 views
Including Google Maps to my module is throwing error
I am trying to add google-maps to my module, but I am getting this issue - Error: [$injector:unpr] and something like this at the end -
angular.module("app", ["google-maps"])
...
1
vote
0answers
28 views
selectbox issue when typing
see this Plunker to reproduce issue.
see plunker for code
Any help would be great!
-trav.
0
votes
2answers
17 views
Unable to get data
hope all is well!
I am starting out with AngularJS and having some trouble with the $http usage.
I have been scouring for the last four hours or so trying to figure this out without luck.
This is ...
3
votes
5answers
37 views
How to set manual default image, if image is not available on my site using js?
I want to set manual dummy image if particular image is not available on website. Also how to set if that image is deleted on server or not available, in that case also i need to display default image ...