Tagged Questions
0
votes
0answers
3 views
Updating fields with angularfire
Im trying to build a really simple lateness tracker with AngularFire. Ive got the miniApp adding staff members ok and setting the initial late minutes to 0 value.
But im stuck on updating the values. ...
0
votes
0answers
6 views
Why is my jasmine test failing on my angularjs controller?
I'm getting this error:
"Controller: MainCtrl should retrieve a list of users and assign to scope.users FAILED
TypeError: 'undefined' is not a function (evaluating 'Users.findAll()')
at ...
0
votes
0answers
6 views
How to make sure Angularjs dependencies are working with 3rd party modules?
We have this project at work where we use Angularjs. Together with AngularJS we are using Leaflet directive, Bootstrap etc.
The problem now is that the project is getting relatively large and we are ...
2
votes
0answers
5 views
AngularJS + Ionic: Label depending on scroll position
I have an Ion-Content scrollable item and some anchors in it so jump to certain positions.
Outside the Ion-Content I have an button which offers to jump to the next position.
For example:
...
0
votes
2answers
12 views
ng-repeat-generated form fields not submitting on HTML post
Using Yii, I have a form for creating an instance of a model. I'm submitting the form via a vanilla HTML POST rather than ng-submit. I currently have:
<form>
...
<div ng-repeat="category in ...
0
votes
0answers
10 views
Retain position of element in ng-repeat
I have an array of objects that I am displaying in an HTML page using the ng-repeat directive. Each item when clicked opens a new html page. Whenever I click on any item, it takes me to the new page ...
0
votes
1answer
32 views
can't make this (simple) recursive function return a value
I got the following function that I write in a factory so I can use it afterward:
treeView.factory('utils', function () {
return{
// Util for finding an object by its 'id' property among ...
0
votes
1answer
18 views
dynamically create directive angularjs and obtain variable input from new directive
Say I have the following directive called foo:
<div>
<label>Enter foo: </label>
<input ng-model="myModel"/>
</div>
And I use it like so:
<foo></foo>
...
0
votes
0answers
9 views
Grid-FS not writing incoming posts to fs.files
I am attempting to accept a fax, decode it, and store the image directly into GridFS. This code succeeds but no file is being written to the database. I can't seem to figure out what I am doing wrong.
...
0
votes
1answer
17 views
Cookie staying around after I delete it and refresh
I'm trying to remove the user's authentication cookie by using $cookieStore.remove('.ASPXAUTH'), but if I refresh the page afterwards, the cookie still exists and the page is still available instead ...
-1
votes
1answer
25 views
How can I change the direction of the bootstrap modal opening?
I want to change the opening direction of my bootstrap reveal modal. I Followed the code as discussed in this LINK but my modal is not opening, I'm using angularjs.
Can anyone help me with the code?
...
0
votes
1answer
33 views
ng-repeat not update model with track by
I've been using checklist-model to work with an array of check-boxes with each selected one can be deleted. Everything seems to work fine until I use it inside a ng-repeat.
The problem is, the ...
0
votes
0answers
9 views
Restangular - Delete Request Without ID
I am using the rectangular library with angular.js. I currently have a service called me that represents the currently authenticated user.
services/me
I also have a service called desk that ...
0
votes
1answer
17 views
Angular update scope with individual values for $watch inside directive
Let's say I have two draggable elements
<div draggable enabled="false"></div>
<div draggable enabled="false"></div>
To enable/disable the elements I use the following ...
0
votes
0answers
10 views
Karma and CoffeScript and Code Coverage
I think something may be wrong with the Karma CoffeeScript code coverage preprocessor. Or I'm not sure what I'm doing wrong! So I come to you StackOverflow. Basically I'm trying to setup my karma test ...
1
vote
1answer
28 views
How to create a utils library in angular
I'm pretty new to Angular. Sorry for the basic question but I couldn't find info about how to write a library in Angular the proper way.
The reason is to benefit from Angular modules as well as ...
0
votes
1answer
32 views
Open Modal and change URL without change the view in AngularJS
I'm trying to open a modal with angularjs.
My route to task list is:
/client/:id/task/list
Its working fine.
Now, i'm trying to show the task info in a modal, above the list.
My route for this ...
1
vote
1answer
18 views
Get all the Scopes in an AngularJS aplication
I am wondering if there is a way to get all the Scopes in an AngularJS application?.
So I can manipulate all of them in the same level, so I can organize them in a directive way or order.
Or if there ...
0
votes
2answers
26 views
AngularJS service delay API call
I'm trying to grab a list of countries from a GitHub repo on the fly without storing all of the information in JS or in my own API, so I wrote a one-off service to take care of this for me and cache ...
0
votes
1answer
49 views
How do I output a specific nested JSON object in Angular?
I'm a rank newbie to Angular, and I'm attempting to port an old jQuery-based app to NG. The JSON I'm starting with (parsed from an XML file) looks like this:
{
"setUps":{
"cartImage":
...
1
vote
1answer
18 views
AngularJS animate with callback, wait for the next animation to start
I have a simple AngularJS project with a directive that I want to start a CSS animation when another is done - hope i make sende, I have a jsfiddle example here, where the animation run at the same ...
-1
votes
1answer
22 views
Injection Error Unknown provider
I'm trying to dependency inject a service and I'm getting the following error
Error: [$injector:unpr] Unknown provider: allStatesServiceProvider <- allStatesService
Script: ...
0
votes
0answers
15 views
Autorefreshable models without recreating of objects?
I have angular resource objects array within new service, where I hold collection of some important objects.
Each 10 or so seconds I should reload it, because there is so many possible changes. Yea, ...
0
votes
1answer
14 views
Google API for Map is not working with angular JS $scope.data Inputs
I have the following angular script. i am facing issue with the datatype of the data which i have received in success method of the http request. the data which has been received is used for the ...
0
votes
1answer
30 views
Compare a given Date object to a specific time on the same day
My goal is to check if a specific date object is within a time frame, and then show the right button on the page as a result.
Currently, I have this:
ng-if="payment.TransactionDateTime <= *Six ...
0
votes
1answer
28 views
preventing ng-select from firing when focus is lost
I have a multi-select box created in Angular js with values from a database, some of which are preselected if they meet certain conditions.
fooSearch.html
<select multiple ng-model="foo">
...
0
votes
1answer
17 views
Angular + ui-select initialization
i'm trying to figure out why, in this plunkr (http://plnkr.co/edit/FeseWk77UQNzZwO0e7D7?p=preview),
the first ui-select is not correctly initialized like the second one.
The initialization is pretty ...
1
vote
3answers
26 views
Return index value from filter method javascript
So I have an array of objects in my angular controller, and I want to return the value of the index of the field within the array which has a matching ID to my parameter. There will only be one object ...
0
votes
0answers
23 views
Bootstrapping maps inside partial
Recently I was trying to incorporate map inside partial using anuglar native ui.map. Hovewer, it seems that my partial is trying to initialize map controller before I bootstrap it. What should be done ...
1
vote
1answer
47 views
Callback is never called
I read articles about $digest cycle and $scope.$apply() as many as possible, but couldn't get to the point how to change my data on the callback.
This is my method:
vm.showAllResults = ...
0
votes
0answers
33 views
$scope of Same Controller when changing Location Path
I have this two pages index.html#/view and index.html#/update (view and update are also html files)
Their layout is essentially the same (except that view is for viewing only and update is for ...
0
votes
1answer
27 views
Angular.js Interval is not updating with my code
For some reasons the interval is not updating. Any idea on what I am doing wrong?
function checkStates(){
setInterval(function () {
var app = document.getElementById('stx');
...
0
votes
2answers
33 views
simple angularjs app, but I'm getting {{ this should be the data }}
simplest angularjs app
I've create asp.net mvc4 app and I'm installed angularjs package from nuget.
Layout.cshtml is cleared and it's looked like this
<!DOCTYPE html>
<html ...
0
votes
1answer
17 views
Angular Transclude - ng-repeat doesn't repeat
Been playing round with Angular directives and came to an issue which I've stumbled upon...
Following is the code:
<!DOCTYPE html>
<html>
<head>
<title>Directive ...
0
votes
0answers
15 views
AngularJS Grid - Filter does not work when filtering on 0
I am using ng-grid to show a list of people and how many wishes they have made for an event. I have also implemented a function to filter the grid after number of wishes. The filter works fine for 1 ...
-6
votes
0answers
38 views
Single Page Application Suggestions.CMS or MVC? [on hold]
we have a new project requirement where we need to develop a single page application. My manager told me to do a research like whether we can use any content management system. Our requirement is we ...
0
votes
1answer
28 views
when use ng-include inside of ui-view get error
I using Angular.js for my application but when i use ng-include inside of ui-view like below I get this error:
Error: e is null .after/<@http://localhost/vb-asli/js/angular.min.js:152:228 ...
0
votes
2answers
41 views
move to different pages based on the checked radio button
i have this form and it has 3 ionic radio buttons used.Is there a way to a move to different pages according to the radio buttons that are selected.For ex: my radio buttons are named
1.USO
2.OASO
...
0
votes
1answer
24 views
How to manually inject partial from controller in angularjs
I am new to Angular world and struggling on how to controll the loading of partials. In my app on a changing the value of drop down I am getting the template url (the url of the partial I want to ...
0
votes
0answers
8 views
AngularJs Include script into template file (lazy loading)
I'm pretty new in the AngularJs world and I'm trying to follow some good practices. In some pages of an app I'm programming, there are some scripts (jquery plugins I'm wrapping in directives) I'll be ...
1
vote
1answer
22 views
AngularJS Error: [$rootScope:infdig] caused by Filter
I want to sort an Object by AngularJS Filter. But Infinite $digest error occurs when using my custom filter.
I want to make the following languages list. The list is sorted by language name.
...
0
votes
0answers
17 views
Handling timeout when pop up of angular is displayed
I have an AngularJS app.
I would like to handle errors when the session is timeout. When it is occured i send the user to the login page.
It is always work for me except when a user clicks on button ...
0
votes
0answers
15 views
MEAN.JS module factory
Im using MEAN.JS, and I can't figure out exactly what this piece of code does:
File:
public/modules/users/services/authentication.client.service.js
Code:
'use strict';
// Authentication service ...
0
votes
1answer
13 views
custom pie chart colors in nvd3-angular
I'm trying to customise pie chart's colors using angular-nvd3 extension.
This is what I caught in plunker here. As you can see the color of the legend was being customised but the chart wasn't.
I ...
0
votes
1answer
39 views
Overriding AngularJs Service
I'm making an AngularJs module. The thing is, this module is suppose to work with other module (its like a plugin). So I'll basically import this module from another module later on. However, there ...
0
votes
0answers
25 views
Issue with Routes in Angular Js
I'm starting to develop a web application using Angular Js as frontend. This application calls some rest services that are deployed into a jboss application server (installed locally).
My idea is to ...
0
votes
2answers
25 views
Angular directive, binding click event to outside element not working
I am trying to create a custom event for toggling with Angular. The directive is called toggleable.
It sounds trivial at first, but tricky bit is that i want to be able to to use any button or link ...
2
votes
3answers
35 views
AngularJS - passing this.value into a function
I have this code in native javascript and it works all right. it logs the textbox's current value
<script>
var boom = function(val) {
console.log(val);
};
</script>
...
0
votes
2answers
38 views
Promises in angularjs controller - how to implement
I am trying to implement a basic function using promises in one of my controllers just so I can ensure it is working correctly before adding in more complex functionality. I am getting a "TypeError: ...
1
vote
4answers
37 views
Check existence of an element in a nested javascript object array
I'm getting a Javascript object in the following format
{
"Alerts": [{
"Name": "...",
"Type": "Warning",
"Message": "...",
"Time": "..."
},
{
"Name": ...