Tagged Questions
0
votes
1answer
16 views
Viewing fixed header on mobile device
Hi my website has a fixed horizontal nav bar and I'm having problems scrolling it on a mobile device when I zoom in. I did research and the only way to fix this issue is to use javascript.
I found a ...
0
votes
0answers
17 views
AngularJS Nested Ng-repeat Counter Decrementation
I am trying to decrement a counter within a nested AnguarJs ng-repeat. I know it is a problem of scope, because the increment in the outer ng-repeat works fine, but in the inner ng-repeat is where I ...
1
vote
2answers
19 views
Two way data binding between controller and external directive
My setup:
Imagine a controller for a shopping cart:
app.controller('CartCtrl', function ($scope) {
$scope.data = [
{
id:0,
title:'article1'
},
{
...
0
votes
0answers
6 views
Get protractor to evaluate an element's isolateScope
I have an e2e test that just began failing. It looks something like this:
myPageInstance.myDirectiveWithIsolateScope.evaluate("myIsolateScopeProperty")
.then(function(myIsolateScopeProperty) {
...
0
votes
0answers
20 views
How can I modify an array model in an Angular end-to-end test?
I've got an angular app which has a table defined in the controllers like so:
$scope.rowHeaders = ["Revenues","Costs","Profit"];
$scope.data = [[100,230,300,400,500,600,700,800,900,1000,1100,1200], ...
0
votes
1answer
31 views
How to wait for state change in AngularJS?
Using Angular 1.2.3, I have a service like this:
var itemService = function ($resource) {
return $resource('/rest/item', {action: ''}, {
query: {method: 'GET'}
});
};
...
0
votes
2answers
13 views
custom angular filter gives TypeError cannot call undefined, but variable is defined and works
I made the following Angular filter to make a word all uppercase:
angular.module('module.name').filter('toUpperCase', function() {
return function(input) {
return ...
0
votes
3answers
32 views
Sorting based on upcoming birthday
I'm building a simple birthday reminder app where I get the names and birthdays in JSON and I need to display the names sorted based on whose birthday is coming next.
My logical thought would be to ...
1
vote
1answer
15 views
Error: Failed to instantiate module restangular due to: '_' is undefined
When first using Restangular on a working website I got the following JavaScript error:
Failed to instantiate module restangular due to: '_' is undefined
What am I missing? What does it mean ...
0
votes
0answers
24 views
Subviews in Angular
So I am trying to render a subview within a template but I want to define the state inside of the subviews controller on click of an element. The reason for splitting it out from the main controller ...
0
votes
2answers
31 views
Using Angular.js to create multiple views displaying different parts of the same model?
I'm learning Angular right now and I'm practicing by writing a simple application that uses ngRoute based on this example.
<-- index.html -->
<html>
<head> ... </head>
...
0
votes
1answer
14 views
AngularJS: Binary Image not loading
I am trying to use ng-src to load binary image data, however all I am getting in the console is: GET http://localhost:3000/%7B%7D 404 (Not Found) in the console with a broken image in the front end.
...
1
vote
1answer
22 views
AngularJS: Async issue when downloading binary image
I am trying to use $http to grab binary images from the service I am consuming, but I think I am hitting an asynchronous issue.
Here is the code I am using in my controller:
$scope.downloadImage = ...
0
votes
2answers
25 views
Cross domain issue - api different domain than frontend
I am not familiar with this issue and I hope you can help.
I am developing a web application. My Backend api endpoints sits under http://www.example.com/api where my front end application located in ...
-1
votes
2answers
42 views
Should we use jQuery in angular-js to focus an element
I have seen many examples where they talk about accessing the DOM element to focus or blur element in angular. But some people even say that we can use jQuery to do that. But I somehow feel its not ...
-1
votes
2answers
30 views
How properly perform validation form [on hold]
I have a form with three input field and one button for send data on server.
When I clicked on the button I need to perform validation form.
First field have native validation, for validation second ...
0
votes
0answers
19 views
jQuery Draggable and Droppable with angularJS
What I am trying to do :
http://jsfiddle.net/nt5dM/1/
<div class="row-fluid">
<div class="span12">
<div class="row-fluid" ng-repeat="rows in board">
...
0
votes
1answer
27 views
AngularJS Calculated field from hidden fields
I'm creating a form in angularJS with a calculated field whose value is given from 3 numeric field, one of which is hidden, and it's visibility depends on the input of another.
My problem is that as ...
0
votes
1answer
36 views
Hide/Show animations on ngShow
I'm trying to do some sort of presentation with AngularJS and I wanted to use the power of ngAnimation which, so far, has been massively hard.
I've been able to use fadeIn and fadeOut with CSS ...
0
votes
1answer
29 views
AngularJS data-binding vs KnockoutJS data-binding
For some internal reasons I needed to convert my AngularJS app to KnockoutJS, so recently I started to play around with Knockout.
First thing I noticed was that the binding with Angular was ...
0
votes
0answers
36 views
How can I force node.js to be case sensitive?
We have a Angular.js project locally running on node.js. No we published on a Apache server and noticed, that Angluar includes do not differ between upper and lower case letters as long as it is ...
0
votes
2answers
16 views
AngularJS: How to set $scope.var in a view only after the $scope.var is set?
I have a view in my angular that looks like this:
<li ng-repeat="n in range(newsList.length)" ng-class="{active: n == paging}" ng-click="setPage()">
<a href ng-bind="n + ...
0
votes
1answer
23 views
How to chain dropdowns with AngularJS?
Sorry for the bad title, I don't really know how to formulate it better, would be nice if someone would edit it to make it better fit my idea.
What I'd like to do is click on a company -> that would ...
0
votes
1answer
17 views
Substring in Angularjs using filters?
I am having the following array that i want to manipulate in DOM using Angularjs with some filters
$scope.urls = [{
path: 'http://a.com/index'
}, {
path: 'http://a.com/home' ...
1
vote
2answers
30 views
angularjs draggable directive
I'm implementing a image draggable directive. My code is at http://plnkr.co/edit/MXnOu6HM1XmMEzot7dn3 Basically its primarily made up of a base movable directive
appModule.directive('movable', ...
0
votes
1answer
25 views
The original state of using Angular.js to validate form input
the code below is part of signin.html. when i visit that page, nick and password is surely empty, so the myForm.nick.$error.required is true. the error message is displayed. What i want is, when i ...
0
votes
0answers
20 views
Application Theme Support using Angularjs
I'm going to build a dashboard, cms like application. Pure front end and based on the requirements, there will be a lot of UI interactions, requests, and data going on around. Below is my initial ...
0
votes
3answers
26 views
Stop time interval in javascript
Currently i am using angular js
I have one get method for get data from server side in default.html page
function bindActiveLoans() {
$http.get(rootUrlSingleEscaped + ...
0
votes
0answers
21 views
angular: how to choose a fragment based on the model [on hold]
pretty new to Angular
I have a model, being returned that returns a list, The template to display it is currently defined in a layout page (left table), and the component has it's own Controller.
...
0
votes
0answers
56 views
AngularJS returns Object object
I have a backend REST service that returns an array. I am trying to display the value returned by this REST service in one of my <select> using ng-options. However I get [object Object] on the ...
0
votes
1answer
17 views
Changing a partial view on hash change, or on navigation, angularjs, multiple views
Yeoman scaffolds my app.coffee file like this:
'use strict'
angular.module('fooApp', [
'ngCookies',
'ngResource',
'ngSanitize',
'ngRoute'
])
.config ($routeProvider) ->
...
1
vote
2answers
43 views
Django and static website
Hey I am pretty new to Django framework.
I chose Django as my back-end framework and angular.js as my front-end framework.
and I have already build my own site(static files only:css.html,javascript)
...
0
votes
1answer
46 views
angular js: splitting up a large controller into multiple files
I have a controller that is getting rather large.. mostly due to all the input validation I need to do. What I'd like to do is split out all the validation functions into a separate "partial ...
0
votes
3answers
62 views
How can I remove .NET in my Angular.js project?
I use angular.js to develop my SPA website.
Now my website depended on ASP.NET MVC.
There is only one .cshtml file(homepage), and others are all .html.
When I open my site, the Index action of ...
0
votes
0answers
41 views
AngularJS view just render correctly after screen interaction
I have an Angular App with two controllers that updates two models every time a new info is sent by server. To clarify, the same info must be updated in the same view, but two different scopes. In the ...
3
votes
1answer
27 views
Directive Isolate Scope 1.2.2
I'm working with Angular version 1.2.2 for the first time and trying to make a simple directive that uses isolate scope with '=' binding to pass in an object. I've done this a few times before so I'm ...
0
votes
1answer
45 views
Is using javascript setters and getter properties to watch for changes a bad idea?
Using Object.create one can define setter and getter methods in javascript.
o = Object.create(Object.prototype, {
fooBar: {
get: function() { return "Meh" },
set: function(value) { ...
0
votes
0answers
31 views
Using inline content as template with ng-view
I am writing a simple app that uses AngularJS and ng-view to provide a single page app, whilst also having a non-Javascript fallback. The backend is written in PHP using Silex.
The backend is written ...
0
votes
2answers
58 views
The scope.$watch item doens't work for fields of javascript objects
I faced with problem of watching properties of java script objects. Partially I described this problem here, but I didn't get solution...
I will describe the problem another way. Here is fiddle
Here ...
0
votes
2answers
22 views
Get json object with specific condition from an array of json objects using restangular
If I am getting data from a json api (playlists.json), and the playlist object has a user_id data field, how can I get a specific playlist with user_id == 1?
I tried doing:
var playlists = ...
0
votes
1answer
50 views
Where do you put the form element if you have editable rows of a table in AngularJS?
We have a table(A) and we want a specific row to become editable on click. Currently we have a directive that inserts a new table into the td of table(A) where it is called. We do this so we can use ...
0
votes
1answer
12 views
What format should data be in for a Dangle JS graph?
I am using dangle.js, a visualization tool built for Angular JS based on D3. I am trying to output a graph by calling the directive with the html
<fs-area bind="data" on-click="filterByDate" />
...
0
votes
0answers
23 views
Show multiple toastr notification simultaneously with in loop in angular JS
I am using a toastr.js for notification as small popup,some time i require to show multiple popups with in for loop in a same(single) $digest cycle of angular js, but problem is that when i tried it ...
0
votes
1answer
28 views
Expand/Collapse child elements of tree (AngularJS)
I'm new in Angualr and have a problem.
I need to create message history tree, which will provide expand/collapse on parent item.
I create view:
<div class="tree">
<ul>
<li ...
1
vote
1answer
29 views
Animating new ng-grid rows
How can I animate a newly created row in ng-grid?
What I would like is that when new data comes in from the server, it is added to the beginning of the grid, and that row then glows for a few ...
1
vote
1answer
24 views
Angular UI-Router Thinks Every URL Is Unmatched And Redirects
In my HTML, I have the following two links, but when I click them or try to enter them into the browser, my new ui-router code is redirecting them to the otherwise url I have specified. Why is this?
...
1
vote
0answers
21 views
Edit arrays using angular-xeditable
I pull some objects from my api using ngResource an then I show them in a table. Thats ok.. the problem become when I try to make 'tags' attribute editable using angular-xeditable but are treated as ...
0
votes
2answers
48 views
Is it possible to add angular custom validation constraints conditionally?
The ng-required attribute is helpful to make a field required based on a condition:
<input ... ng-required="object.isRequired" \>
But how can this type of use be extended into using my own ...
0
votes
1answer
23 views
ng-show is not working in table while the same statement working in div body
I have two tables inside a div element. I want to hide both the tables when template loads. and want to show them based on conditions. for this i created two tables inside a div and placed ng-show ...
3
votes
1answer
28 views
CSS Float and AngularJS
I'm trying to control the sort order of divs on a page using a JSON object with a property of sort:
var json = {
modules: [{
css: 'small',
header: 'MES',
sort: '2',
elements: [{
...