Tagged Questions
AngularJS is an open-source JavaScript framework. Its goal is to augment browser-based applications with Model–View–Controller (MVC) capability and reduce the amount of JavaScript needed to make web applications functional. These type of apps are also known as Single-Page Applications.
0
votes
0answers
8 views
AngularJS Factory undefined is not a function
I am trying to load data from my JSON file through a $http call in my Factory and every time I run the code I get the same error. How can I fix this.
Error
TypeError: undefined is not a function
at ...
0
votes
0answers
6 views
Jcrop does not render correctly
I added jcrop to an application but it does not seem to be rendering correctly.
Basically, I have the image I want to crop in a custom modal. I instantiate jcrop after the image loads.
...
0
votes
0answers
9 views
Angular JS, infinite Digest Loops, Views not updated
Angular is going to make me crazy ! I love Angular but I'm really a newbie....
So I have a data structure like this one:
MyArray =
[ {key1:val1,
key2:val2,
key3: [{id:123,
...
0
votes
0answers
7 views
How to test angular filter which depend of moment.js?
I have simple filter which depends of moment.js:
app.filter('fromNow', function() {
return function(date) {
return moment(date).fromNow();
}
});
Have can i write unit test of this in ...
0
votes
0answers
4 views
AngularJS ng-CKeditor inline doesn't show table tools buttons
Does anyone have a solution? I've tried to download the full preset from CKeditor website, but just a subset of buttons is showed in inline editor.
Here's my config.js
CKEDITOR.editorConfig = ...
0
votes
0answers
9 views
AngularJS What is the correct way of cutting up your IHM
I'm now using Angular since a couple of months and i'm wondering if i'm doing it right as far as IHM organisation go.
I've my Index page like this
<html>
<head>
<all my script and ...
-1
votes
3answers
28 views
Probelm with number incrementing in Angular.js
So I'm new to this angular thing and I'm attempting to build and app that calculates sales metrics. I have run into an unusual problem in my build.
Part of the app allows users to increase/decrease a ...
0
votes
0answers
9 views
How to inform client of current state of execution
I wish to have a progress bar on the client side built using AngularJS. This progress bar will inform the end user of the current state of execution of a query on the server.
The server in this case ...
1
vote
0answers
10 views
Is it possible to run code after very view has been loaded into the DOM?
I'm building a facebook-tab page in angular. Because it's facebook I need to run some code every time the view is updated and DOM is fully loaded. I have found
$scope.$on('$viewContentLoaded', ...
0
votes
0answers
7 views
Downloading zip file with AngularJS
When I access this url through browser it will ask me to download the file
https://some-domain.com/api/v1/file/log123.tar.gz?type=log
And I need to download this from angularjs http request
I ...
0
votes
0answers
17 views
How to access the variable in angular js to a route
I have the code in html with Angular js:
<li ng-repeat="item in newsItems | filter:q">
{{item.posts}}</br>
by: {{item.pseudoname}}
<form name="edit" ...
0
votes
0answers
14 views
Angular AJAX call, how to get the parameters I have passed in from the success callback function
I would like to use a parameter that I have passed into an ajax call from the success method. Is it possible to do so? Here is my code
for (var int = 0; int < intervalCount; int ++){
...
0
votes
1answer
20 views
javascript not working after pageload
I am new to UI development. I am using AngularJs in my project. I have configured the routes, controllers inside a module and referencing the same inside the html page. The controller is responsible ...
0
votes
0answers
6 views
(How) Can I use $Resource in combination with Server-Sent Events?
(How) Can I use $Resource in combination with Server-Sent Events?
Can I?
How?
Should I?
(Is there a more appropriate way?)
Thank you!
(Y)
0
votes
0answers
20 views
TypeError: 'undefined' is not an object (evaluating 'promise.data.map')
I'm currently creating unit tests for a project implemented in angular ver. 1.2
I've created a mockService returning a deferred promise to use with my controller tests. A service method looks like ...
0
votes
0answers
15 views
looking for a solution for generating pdf with client side (angular js)
I am looking for a solution to generate pdf from (html + css + javascript) using AngularJs.
I tested two solutions: jsPDF (it does not take the css) and Shrimp which is based on Ruby.
Is anyone ...
0
votes
0answers
14 views
Angular JS + Cross Domain + Web API
I am planning to use Angular JS + Web API together for my application.
Technologies : VS 2013, .NET 4.0, MS Server 2003.
I have my Web API & Angular JS Client on two different domains ...
0
votes
0answers
6 views
ie8 memory issue in angularjs Single page application
I am using angularjs with Single page application pattern . when i am facing issue in IE8 . Memory increase every page load .
please help to me
1
vote
0answers
22 views
Select Filter dont work properly, Angular js ng-options
Hi there,
I am new to angular.
In my current demo app I created some users list with select filter ng-option.
there is some bug that I didn't mange to find.
The bug:
When I choosing the Female it ...
0
votes
0answers
26 views
AngularJS ng-repeat not tracking deep changes in model
I have a model object in a controller, which I want to repeat with certain HTML. The model object consists of multiple 'key', 'value' pairs which are dynamically added and the 'value' part is an ...
0
votes
0answers
12 views
Angular JS: Select box in Table Header
I am working on a table made in Angular JS. There is a header column in table that implements a select box to sort the contents on that column.
I am having this code
columnDefs: [{field:'dt', ...
0
votes
1answer
20 views
Saving checkboxes value on the browser cache
I have a particular question, in my application i need to save some configuration about checkboxes, radio inputs and some other stuff. Each one of this things could be different user by user and the ...
0
votes
0answers
10 views
Load Angular library on specific pages
I am trying to integrate Angular in to parts of my web application. When i say parts, i mean there are a number of pages with either just static text or images which it does not make sense to load a ...
0
votes
1answer
10 views
Angularjs, ng-view and custom document.ready logic
I am having a problem with angular js.
The thing is, I have bought a html template on the web which has custom javascript that is triggered on document.ready (contains a lot of code) and it does ...
0
votes
0answers
8 views
Is it possible to run karma on tfs build?
I´m using TFS 2010 and Visual Studio 2012. Now I want to unit-test my AngularJs-Scripts. In Visual Studio this seems to work with KarmaVs, but how can I run the tests on tfs-build?
0
votes
1answer
11 views
ng-grid row border becomes invisible after using cellClass
When I use cellClass and color entire column, the row border becomes invisible. Here is the plunker. http://plnkr.co/edit/4IeQQBTIe8sgHVEBUTAp?p=preview .Can someone help me.
0
votes
1answer
17 views
HTML elements inside template of a directive
I am new to angular js and exploring custom directives. I have created a directive and have named it datatable. Below is the code:
angular.module('myApp.directives', []).directive('datatable', ...
0
votes
0answers
6 views
navigator.globalization.getLocaleName phonegap globalization
I am building an angularjs/phonegap app. using navigator.globalization.getLocaleName always returns 'en_GB' even though I am in Australia (and all devices where purchased in Australia).
...
0
votes
0answers
22 views
Thinkster.io angular chapter 6 error - auth.logout() not working
If someone who have gone through thinkster.io augularjs tutorial would be familiar with the below code. I am facing the below error.
<ul class="nav navbar-nav navbar-right" ...
1
vote
2answers
19 views
Setting template or templateUrl in Angular Directive based on user input
I have simple directive like this :
app.directive('sample',function(){
return{
restrict:'E',
template:'<a href="#">Hello sample</a>',
templateUrl:''
}
});
i want ...
-1
votes
0answers
17 views
jasmine testing for angular js
I am new to Jasmine testing.I would like to test .success method in the below code.i have the set of expected values.I want to check if the expected values are equal to the data that is passes in the ...
0
votes
1answer
12 views
Bootstrap UI : Auto Tab Move with Time
I have a AnguleJS Bootstrp UI Horizontal Tab structure.
Once I click on Tab 2 the contents of Tab 2 displays and same for Tab 3.
My question is:
I want to implement in a way that after 3000 ms ...
0
votes
0answers
27 views
Adding drag and drop to tabs
Check this jsfiddle. It is buggy as hell - add 2-3 more tabs and try to sort them. Based on some angular lessons and this fiddle with angular sortables. Tried to reinit sortableEle on each DnD's end, ...
0
votes
0answers
19 views
ng-repeat fails on ie-8 despite es5-shim
I have an angular model page that has an array images. In my template I have this:
<div slide="slide" ng-repeat="slide in page.images" active="slide.active">
and I have tried to have ...
0
votes
1answer
24 views
How can I use Angular service function?It throws Error:“Cannot read property of undefined”
I have no idea why I am getting this error
TypeError: Cannot read property 'get' of undefined
I need to get marker data from database.
Any suggestions would be appreciated.
MainApp.js
...
0
votes
1answer
21 views
“TypeError: Cannot read property 'name' of undefined” error after Angular page refresh
Sorry if this is a simple problem, I am a newbie to angular and trying to integrate it as a front end for a basic rails blog app. I am a bit stuck on a problem that I think is related to angular ...
0
votes
1answer
29 views
is it possible to pass a json object with vars as an angularjs directive param?
here is how I am trying now:
<ul
class="list"
list query="
{
'people': [{'people.id': '+id_+' }],
}
}"
>
<!-- ... -->
...
-2
votes
0answers
19 views
how to change the pie chart data using angular js code using highcharts [on hold]
can anyone tell how to change the pie chart data using angular js code and highcharts.
i have tried this code but it does not work for me. only it changes for one value.
there is a sample code ...
0
votes
2answers
24 views
nested ng-mouseover in angularjs doesn't work
I used the same approach with jquery which is the nested mouseover and mouseleave and it worked, but not with angularjs.
I want to show the button when mouseenter into the <li>, but hide the ...
1
vote
1answer
18 views
AngularJS: No view changes even when using $apply()
The delete functionality in this AngularJS apps for the most part (record is deleted and success message is displayed), but the view doesn't update.
I've tried adding $scope.$apply() but that only ...
0
votes
0answers
11 views
Data-bound input returns undefined even though data is present
In my application (a shopping cart) there is an input field that a user enters a numeric value into. This triggers other databound inputs to recalculate their values.
At seemingly random intervals, ...
0
votes
1answer
12 views
variable does not get passed on to directive scope?
I am trying to pass on my address to a directive called gmaps:
restrict: 'EA',
template: '<div class="gmaps"></div>',
replace: true,
scope: {
address: '=address'
...
0
votes
0answers
11 views
angular-google-maps with directionsService
I am trying to use angular-google-maps but I need to use the google maps directionsService. Does anyone have an "angular-y" example?
Thanks!
0
votes
0answers
21 views
Angular JS : select element doesn't function in the modal window
I am trying to make the select element work in a modal window which is opened from the main page. Following code would help to understand the exact scenario :
home.html
{................
...
0
votes
3answers
9 views
AngularJS updating the contents on select
I tried to update the contents of my DIV based on a select option but could not figure it out how to update it. I have the code HERE.
The data are in two different JSON objects. For there is only one ...
0
votes
1answer
15 views
AngularJS and GitHub Pages - loading templates issue
I'm trying to set up my Angular app on GitHub pages at http://moroshko.github.io/seekdeck.
The Angular routes are defined in application.js:
<html ng-app="SeekDeck">
<head>
...
...
0
votes
1answer
19 views
Testing an AngularJS Controller method that returns a promise using Jasmine and Sinon
I'm trying to test an Angular controller method that returns a promise. I stubbed out the promise-returning method (using a sinon stub), but when the promise is resolved (fulfilled), the registered ...
0
votes
2answers
37 views
How to pass js variable to controller angularjs
I'm trying to pass a javascript variable to a controller angular and I can not do it, any suggestions?
My function:
function coordenadas(position) {
var latitud = ...
0
votes
1answer
16 views
Custom Api Providers
I am creating api provider for my app by following this gitcode and google ng-conf. But this is overriding $routeProvider in my app. As when I check for $routeProvider in the console(in app config) it ...
0
votes
0answers
12 views
Angular $save on cloned $resource fails to update with response
Provided that I have a previously retrieved from server $resource object.
When I do
myObj.$save( function(){ console.log(myObj); } );
I see all the updated data received from as a response with ...