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.
2
votes
0answers
6 views
ng-style won't bind with Ionic scroll position
I want to do a progress bar when user scrolls down. When it's down all the way, the bar is 100% width.
http://codepen.io/hawkphil/pen/vOyPwN
HTML
Ionic List ...
-1
votes
0answers
18 views
Make 5 day week
I have just started to use the angular-bootstrap-calendar.
https://github.com/mattlewis92/angular-bootstrap-calendar
I am using the week view in in an app. 7 days is a bit too much on the screen ...
1
vote
0answers
12 views
AngularJS : JSON response in http get : maximum stack overflow error
I am trying to get back a JSON response from my API server that my AngularJS controller is calling.
The controller looks like :
.controller('podcastPlayIndividual', function($scope, $routeParams, ...
1
vote
1answer
23 views
Angular only repeats over arrays with no repeated elements [duplicate]
The following Angular code displays four dancing hamsters:
<img src="images/dancingHamster.gif" ng-repeat="i in [1,2,3,4]">
whereas this code displays nothing:
<img ...
2
votes
0answers
29 views
Angular how to fire a callback function after DOM elements are updated for each digest
I want to make an angular body-scroll only table. To make it simpler, I created two tables, one of which only has the headers, and the other table is for the body. The body table is wrapped into a div ...
0
votes
1answer
8 views
Installing Ionic via Node.js fails
I wanted to set up Ionic. So I downloaded and set up everything I needed to do so, but now if I want to download and install Ionic via Node.js with the command
npm install -g cordova ionic
I just ...
0
votes
0answers
16 views
Directive render from template
I am new to angularjs. I am trying to make an custom element directive loaded from a model. If I use this directive in the HTML file works, but what I want to do is use this directive in a model. It ...
1
vote
1answer
25 views
How to pass a variable from a directive (ngModel) into the html outside of the directive
I've got a custom directive with an html template and it basically is a menu option. When a user makes a selection it updates the ng-model variable within the directive.
But I would like for the ...
1
vote
1answer
12 views
Angular $http set cookie on each request after login
I'm having troubles with $http calls in AngularJS. I've created the following services
crApp.service('authService', function ($http) {
var urlBase = 'http://192.168.xx.xx:8081';
// ...
0
votes
1answer
14 views
How to get notified when grid changed in AngularJS ui-grid?
If there is a way in ui-grid that I can know a grid is finish updating the rows?(like a filter is being applied etc)? I want to run some function after the grid view changes.
I tried the following ...
0
votes
0answers
17 views
Required Files Not Found, Ghost Files And Folders In My Project
Hello I am having a rather peculiar issue with an angular theme i downloaded, i have the following file in my project:
theme-core.js
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var ...
0
votes
0answers
7 views
Get Route Parameters in MEAN App not using ngRouter
I am creating a MEAN stack application. I would like to be able to access route parameters from urls like "/users/20" where i can retrieve 'id = 20'.
In node, it is super easy and looks like
// ...
0
votes
3answers
24 views
AngularJS share function/common code in a controller
I have a subroutine I want to use in my controller. In the case or working with data, a new record blanks fields, as would a screen clear, and after some other processes, I would like to clear the ...
-1
votes
0answers
9 views
Showing current usage more than 100% in bullet chart using angularjs-nvd3-directives library
I'm trying to use bullet chart from angularjs-nvd3-directives library to show usage of certain data against a plan(in percentage). When the current usage goes beyond plan size(which is 100% on the ...
1
vote
3answers
19 views
Angular.js - prefill input with one property, but set ng-model to different property
I have my input:
input(ng-model='amount' ng-init='amount = (amount == 0) ? total : amount')
So I need the user-inputted value to be saved to amount, however, when the page loads, if amount happens ...
-1
votes
0answers
9 views
Convert AngularJS UI-Bootstrap Navbar to a Side Menu when on mobile
I want to use UI Bootstrap for my responsive menu but I want to change it so that the menu is push in from the side instead of coming down vertically.
I want to have the same behavior as this Jasny ...
1
vote
0answers
23 views
AngularJS: using input checkboxes and getting checked values from unrelated lists
I'm building a nested tree and using AngularJS input type checkboxes in all the leaves. Most of the examples I've seen use ng-repeat over a single list, bind the model to the list item, and then get ...
0
votes
2answers
13 views
ASP.NET 5 vNext Forms Having Anti Forgery Tokens Added
I'm experiencing an issue where a simple form tag is having an action and method attribute added to it. Also added are some hidden input fields for what I am guessing is anti-forgery.
Here is the ...
0
votes
3answers
18 views
How to get height of my ul element? In AngularJS without jQuery
Plnkr http://plnkr.co/edit/a7oV4gWzJG532RSqqOt3?p=preview
I'm building my own infinite scroll ability in an Angular project, and I need to obtain the height of my ul.
Currently I'm using this:
...
1
vote
2answers
23 views
ng-repeat return blank page [Angular]
It should display list of products but this return blank page.... Anyway if I don't use ng-repeat it works fine... Could someone find what is wrong with this code?
HTML
<div ...
0
votes
0answers
10 views
Communication between directives and services/factories - general architecture - angularjs
This question is about general software architecture when using directives in angularjs.
From what I learned so far and how I understood it, when creating reusable software components, its usually ...
0
votes
0answers
13 views
How to get angular ui-grid remaining columns to resize after one column width is resized manually?
After resizing a coulmn to be smaller I want the remaining columns to adjust their width to take up the entire space of the grid. There should never be any white space. How do I achieve this behavior?
...
0
votes
0answers
12 views
How to get ng-grid for Angular working?
I have looked at the following link: http://angular-ui.github.io/ng-grid/
and I've tried following the instructions but I still cannot get ng-grid to work.
In step #2, it says to reference ngGrid's ...
-1
votes
1answer
24 views
Dependency injection bug: unable to instantiate 'app'
I am trying to get a express/angular app online and am getting a confusing bug. Console readout indicates the following:
Uncaught Error: [$injector:modulerr] Failed to instantiate module app due to:
...
0
votes
0answers
14 views
How to use ^form in directive template in AngularJS
I'm creating a directive that is responsible for displaying error messages on form submit. In the directive, I'm using the
require: '^form'
parameter, but I'm not exactly sure how to include that ...
0
votes
0answers
11 views
Angular ng-view slide transition not working
I'm trying to implement transitions for my views in my application. I have a single container for my views and I want to have a nice slide effect when changing views, going one way, and the other way ...
0
votes
0answers
35 views
Multiple ng-show issue
I have an issue with a project
The concept:
1) Every time what I click dependencies button a modal appears
2) Table has rows (let say parent rows)
3) each row has a nested table (ng-show) - (let ...
0
votes
0answers
22 views
How to upload file in AngularJS?
Can not create a file upload using AngularJS.
There is a form:
<form ng-submit="getElem()" ng-repeat="elem in elems" class="update-form">
<label for="name">Elem name: ...
0
votes
1answer
8 views
AngularJS - Upload Image to SharePoint Library/Corrupted File
I am using the following Angular Module to attempt to upload images to SharePoint through a Web browser: https://github.com/nervgh/angular-file-upload
I am getting successful 200 POST messages and a ...
3
votes
5answers
39 views
Date object in Angular
Can someone explain why the input with ng-model in this plunk is not updated when the button is pressed?
http://plnkr.co/edit/8JpyUVM8dY8aoV4fi5hC?p=preview
HTML
<body ...
0
votes
0answers
6 views
AngularJS - Ionic - Parse - PayPal plugin : How to pass values to the buy function
hi i am trying to get a basic paypal payment setup within ionic. The products are loaded from a parse.com database all have an attached buy button. what i would like to do is pass the values from the ...
0
votes
1answer
22 views
Specifying Angular ngModel Value with ng-repeated options
I've got a select dropdown, whose options are being ng-repeated out of an object called $scope.bars.
However, my ng-model, which is set to a sub-value of $scope.bars, is not correctly choosing an ...
1
vote
2answers
14 views
Sync directive data with factory value updated by an AJAX call
I've got two simple directives, let's call them blue and red. What I need is for them to work in such a way that when I click the button in the red directive, the value in blue gets automatically ...
1
vote
0answers
37 views
file upload with $http
Is this question too difficult?
I've my client side code with post data variables, and wondering how can I add file data to $http.post.
I've seen some examples and either they are using a custom ...
-1
votes
0answers
19 views
Which programming language or interface is better to connect AngularJs and HBase? [on hold]
I am new to web application and asking for your little guidance in this field.
Actually, I have to use AngularJs for front end and HBase as database. Now my doubts are:
HBase provides native JAVA ...
0
votes
0answers
11 views
Update scope from factory method using angular-websocket
I am trying to use Web Sockets in AngularJS. I currently have all Angular code in one file, as below. My controller does not get called after "onMessage" has been received, only before it has been ...
0
votes
0answers
10 views
How to use Protractor and Phantomjs test SSO process?
I have a project written by AngularJS, but using SSO for login.
The Single Sign On process will navigate the browser to 3rd party sites which are not built by AngularJS.
My e2e test cases work fine ...
3
votes
3answers
24 views
Return resolved $resource within service
I'm new to writing services. I'm calling a method on my factory which calls a series of operations.
1) Get data from DB
2) Wait for the $promise to resolve and then compare & filter the results
...
1
vote
0answers
18 views
how to apply different styles for angular bootstrap modals
In my application I've used angular bootstrap $modal to open a modal dialog. I've modified the styles given by the bootstrap to apply some transition to my modal dialog, but as I continue further in ...
0
votes
1answer
17 views
Dynamic routing in Angular
I have an Angular app which is supposed to display different pages depending on the resource in the following way:
Given url: localhost/foo/456
Call REST service (fooService) to get a descriptor for ...
0
votes
1answer
15 views
AngularJS $ViewContentLoaded: Any way to make it animate differently depending on UI-Router State?
My current solution forces Angular to use a jQuery animation to scroll to the top of the page on each $viewContentLoaded. It's simple and crude:
MyApp.run(['$rootScope', function ($rootScope) {
...
0
votes
1answer
32 views
Resolve nested AngularJS promises in Karma unit test
I try to test a function that uses nested promises (let's assume this function can't be changed). To process those promises I have to call $rootScope.$digest() at least two times. I came up with this ...
-1
votes
0answers
25 views
Adding a time picker to a modal, using jquery and angular
Repository for Project
here is the repository to see what i have done so far. I got the clock and modal to combine nicely however the popup for the modal seems to be layered behind the modal itself. ...
0
votes
0answers
8 views
Upload an image Object to the CouchDB
i´m recently having a big issue with uploading an image as an attachment to a couchDB-Server. I've implemented a function, that can upload an image to the server, coming from a HTML-input-Tag, which ...
0
votes
2answers
11 views
How to get the model defined in child's form on parent button click?
Parent.html
<div ng-controller="parentController">
<div ng-include="'views/Child.html'">
</div>
<button ng-click="GetChildModel()">
</button>
</div>
...
0
votes
2answers
20 views
Allowing both html5 and hashbang mode
My question is similar to this one, but my goal is to make the hashbang URLs silently redirect to the html5Mode style. I mean, when
example.com/#!/hello
gets entered, it should be silently changed ...
2
votes
1answer
24 views
How to check if user is authenticated in AngularJS router?
I have an application set up with the Mean.js yeoman generator. It uses PassportJS to setup local-authentication. This all works great and I understand how to check if a user is logged in from the ...
0
votes
1answer
22 views
AngularJS Format date in read only field
I am having trouble formatting a date in a read-only field using AngularJS. This is my html code -
<div class="row">
<label class="col-md-2">Date Last ...
2
votes
1answer
16 views
Angular directive repeats only the last element
I am trying to create an "instrument" directive. I have added three instruments to my index.html, but instead of showing them all, I see that the last one is repeated three times:
/**
* ...
-3
votes
1answer
18 views
Use ng-show before ng-repeat
Is it possible use ng-show or ng-hide before ng-repeat?
I'm tryng so:
<div ng-show="articolis">Non tieni sott'occhio alcun articolo!</div>
<ion-list>
<ion-item ...