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
2answers
23 views
How to set tab variable to angular js variable
I am trying to loop through my dynamic app content. I have a grid that gets repeated with ng-repeat which makes tiles. When you click that dynamically created tile, I want to assign the clicked tiles ...
0
votes
1answer
11 views
AngularJs override tooltip bootstrap.css style
I am using AngularUI Tooltip in a directive as below.
app.directive('customTooltip', function($compile) {
return {
link: function(scope, element, attrs) {
var config = ...
0
votes
1answer
11 views
making cookie name configurable
I am using angular ngCookies to read cookies.
At present I am using this line to read cookie
$cookies.MYCOOKIE
The problem is that here I have to hard code cookie name, I have different cookie name ...
0
votes
1answer
14 views
AngularJS - Isolate scope from parent to child of child?
I have the following simple three layered markup, with each layer being a directive of its own.
<div class="schedule">
<div class="shift" ng-repeat="shift in schedule.shifts">
...
0
votes
2answers
13 views
updating $scope of controller A from controller B
Within page1.html I have:
<div ng-Controller="pageOneController">
<input placeholder="{{placeholder}}" type="text" />
</div>
//page1.js
app.controller('pageOneController', ...
0
votes
1answer
26 views
Use of ng-model incorrectly makes slider bar start at middle
I have a slider bar and want the its gripper starts at the left side.
Here is what I tried to do, but it doesn't work.
<input type="range" id="{{'sa' + q.id}}" value="0" min="0" max="10" ...
0
votes
0answers
25 views
AngularJS: I have the same function in more than one controller. Keeping DRY in mind, what's the best solution?
app.controller('Controller', ['$scope', function($scope){
$scope.getNote = function (note) {
return 'http://mydummyaudiofile.com/'+note+'.mp3';
};
$scope.notes = function(note){
...
0
votes
2answers
12 views
image is always pending on Angular JS view
I'm having problem with my view, it seems that the image is always pending and it's not been rendered by the browser.
I have this folder structure:
img/
- logo.png
scripts/
- scripts here
styles/
...
1
vote
0answers
11 views
Token-based authentication with angularjs
I have a problem with authentication using JWT.
On the most website, when I check remember-me option,
the token may be stored in localStroage, or cookie. This is easy.
If I don't check remember-me ...
0
votes
1answer
15 views
AngularJs how to generate a list of sliderbars with displayed value
I want to have a list of questions and there is a slider bar with displayed value following each of the questions.
Here is the example how to do the data-binding from AngularJs website:
<!doctype ...
2
votes
0answers
16 views
How can I access a directive's ngModelController from another directive?
How can I access a directive's ngModelController from another directive?
The scenario
I'm creating a type ahead widget, which is composed of a typeAhead directive and autoCompletePopUp directive.
...
5
votes
1answer
26 views
TypeError: undefined is not a function - AngularJS, $http, 'POST'
I keep getting the above error when running the following code in a MEAN stack app:
$scope.completelesson = function(lessonindex, type) {
//a variable that will be appended to 'level' in ...
0
votes
0answers
8 views
How to structure AngularJS and PapeJS project
The idea is to make use of Angular in a simple canvas game development. In theory the project should benefit from being more systematic, manageable and scalable. This is not a sprite/tile/collision ...
1
vote
0answers
15 views
AngularJS input submit btn ng-click not working
I have the following input btn and link in my AngularJS app, when I click on the link the function openFancybox is called and the JQ fancybox is loaded , when I click on the btn the openFancybox ...
0
votes
0answers
16 views
Prevent asian characters using angular JS
I want to prevent the user from entering Asian characters (like Japanese, Chinese).
I tried using $parsers but i could notice that when i type some asian characters, function is not even called and ...
1
vote
1answer
21 views
AngularJS $q.all, trigger regardless of error
Is there a way to trigger $q.all regardless if the promises returned back an error?
I'm trying to perform multiple $http.post requests, POSTing values from text fields inputted by the user. The back ...
0
votes
2answers
19 views
Why does Plunker give 404 errors with AngularJS?
This code works fine when I run it locally but when I put it in this Plunker (http://plnkr.co/edit/RCMbxv7Peb83tRKWTMJM) I get the following looping 404 errors:
Failed to load resource: the server ...
0
votes
0answers
14 views
How to update angular progress bar every time I click
Hi I am using angular progress bar and I want to update every time I click a button.
<div ng-controller="ProgressDemoCtrl">
<br/>
<h3>
Dynamic
<button class="btn ...
0
votes
2answers
28 views
scope variable inside object does not get updated
I have an issue where my $scope.searchVal variable updates, but if I assign it inside an object, it doesn't seem to update at all.
See below:
<div ng-controller="MyCtrl">
...
0
votes
0answers
11 views
What is the best way to animate an Angular view in based on its position in the nav?
I made a little prototype for an Angular app that will slide the next view in based on its position in the nav. I'm new to Angular so I'm wondering if there's a better way to do it.
Here's my code - ...
0
votes
0answers
7 views
Get Firebase unique ID from filtered object
I’m building an Angular app that searches geographic locations through the 500px API and returns photos based on the search. If someone searches the same location multiple times, I’ll need to ...
1
vote
3answers
22 views
Angular: When I modify data in a factory that's bound to a controller's scope, it doesn't update
I have a pretty simple example
(also available on this fiddle: http://jsfiddle.net/depov5w6/)
I have 2 factories, one which returns an object with the property 'data', (which is bound to the scope ...
1
vote
0answers
5 views
Protractor E2E - How Do You Manage Database?
I'm currently leaning on the Node + Angular stack and utilising Karma and Protractor for testing.
I'm currently having a hard time figuring out how to handle E2E tests that create and edit data, as ...
0
votes
0answers
22 views
Integrating AngularJS contact form in a bootstrap designed page - Navbar's dropdowns not working
I created a contact form with angularJS and when I try to integrate it in the page that I built with bootstrap, the Navbar dropdowns and the toggle button don't work. How do I fix it in the best and ...
2
votes
1answer
21 views
Active link/tab in angular ui-router
I'm using angular ui router and I'm trying to have nested/children links. All works fine but how do I have selected/active link in Contact tab? Basically, I need to be able to have selected/active ...
1
vote
2answers
27 views
AngularJS Model Location
I'm writing a simple AngularJS example that doesn't have a controller. It just uses the default global controller/model.
<!DOCTYPE html>
<html lang="en" ng-app=>
<body>
...
-2
votes
1answer
12 views
minifying an app built on angular js and require js [on hold]
I am trying to minify and angular app built with require js. Does anybody know good references for the same. I referred the below,
...
1
vote
1answer
12 views
ui-router nested views access to multiple controller
with ui-router, any child and grandchild of a state has access to their parent and grandparents controller correct?
So for example a .state(resources.resource.rates) the .rate state controller has ...
1
vote
0answers
9 views
jsPDF adding wrong spaces to table
I am trying to turn an html table into a pdf using jsPDF's fromHTML function. This works for the most part, but for one of my screens the table is being incorrectly added. Here are images showing the ...
0
votes
0answers
8 views
overflow with ng-grid cell header
I am trying to implement tooltips in the cell header of ng-grid. However, setting headerClass in a columnDef that gives overflow:visible only allows the tooltip to overflow into other header cells - ...
0
votes
0answers
19 views
Reload page when back button is clicked angularjs
I'm new to angularjs and I'm trying to get my page to reload and the controller to reload when I hit the back button. I'm using a nested UI-router and right now, the page doesn't reload and the ...
0
votes
1answer
17 views
displaying Data from multiple tables with AngularJs
I have been reading different posts with similar questions but I cannot get this figured out. I have a Job class that is linked to different tables such as Customer and Employee. The Data is coming ...
1
vote
0answers
12 views
AngularJS View Animation Mystery—elements render at wrong position then resolve
Working with angular and using animate.css to handle some animations that get applied to views as they enter and leave. I've come into a problem that has eluded my attempts to solve it thus far.
...
1
vote
2answers
27 views
AngularJS communication between directives
I'am new to Angular.js, I need for my application some communication between directives, I read some documentation about link and require, but can't understand exactly how it works.
For a simple ...
0
votes
0answers
12 views
Css, Angular, and Javascript not working on Heroku
I finished up a project of mine (blog), and uploaded it to heroku. Everything works fantastically on my local setup, and I wanted to see if it looked good on heroku. The site is jmnewman.herokuapp.com ...
0
votes
1answer
17 views
How do I add error handlers to AngularJS $resource service calls?
I have the following service in my app, which works
myServices.factory('Auth', ['$resource',
function($resource){
return {
Login: $resource(serviceURL + 'portal/admins/login', {}, { go: { ...
0
votes
2answers
20 views
AngularJS $promise then() data undefined
I am trying to get data assigned to a $scope variable. Inside my $promise.then() function it is displaying correctly but outside the function it shows as undefined. The following is my controller ...
0
votes
0answers
8 views
Flow.js ( in Angular.js) uploads to node.js failing if greater than 5MB
So i've got my defaults of 1Mb chunks to upload, and 5 simultaneous chunks at once, but after those chunks have completed my client side doesn't send the remaining chunks. Hence the max out at 5Mb, ...
0
votes
1answer
24 views
AngularJS Custom directive on same HTML element as ng-repeat
I wrote a simple directive to be able to dynamically set the value of ng-model, as described in this other Stack Overflow question: AngularJS - bind ng-model to a variable which name is stored inside ...
0
votes
0answers
6 views
Jasmine 2.0 async done() and angular-mocks inject() in same test it()
My usual test case looks like
it("should send get request", inject(function(someServices) {
//some test
}));
And Jasmine 2.0 async test should look like
it("should send get request", ...
0
votes
0answers
5 views
Mocking asynchronous service function using angular/karma/jasmine
The test in this code does not succeed. I can't seem to successfully test the return of an asynchronous function.
describe('mocking services', function () {
var someService, deferred;
...
0
votes
1answer
24 views
What does Object {$$hashKey: “00S”} mean [duplicate]
I have been working with a select option box. I am able to get it to work and print the selected option correctly independently but inside my application it just would not work.
<select ...
0
votes
3answers
43 views
Is server required to run some CLIENT side DART apps using Polyemer.dart and/or Angular.Dart?
Not sure how to tell my point where, hopei make it as clear as possible.
I tried running some apps that are using Polymer and/or AngularDart, including:
...
0
votes
0answers
10 views
Testing uiRouter with requirejs
I have been stuck on this issue for a bit and have not had success with any other questions on here regarding testing uiRouter with requirejs. I have a fairly basic controller setup that uses the ...
0
votes
1answer
15 views
AngularJS-How can I format a string containing a series of numbers to display as a list on my HTML table?
I have an HTML table that I am dynamically filling out using a couple textboxes. What I would like to do is the following:
Let
$scope.submittedNumbers = 00251212 00254545 00257878 00256565
Display ...
0
votes
0answers
22 views
Angular Ui Bootsrap `dropdown` interfering with my directive require
In angular.js, I use require: "^helpme", to inherit a directive's controller in my directive called actionButton...
angular.module("main.vips").directive("actionButton",
...
0
votes
1answer
22 views
Play framework : What is the best way to pass on scala template parameter to Javascript (angular)?
Lets say I want to pass a List of strings to my template and create a ul by iterating over it. And I don't want to use ng-init.
Action :
public static Result login(){
List<String>Names ...
0
votes
1answer
25 views
Can AngularJS $modal service (ui.bootstrap.modal) be made to block synchronously?
I am using the AngularJS $modal service (ui.bootstrap.modal) to present a dialog box:
$modal.open({
templateUrl: 'resources/qad/qraview/view/qModalDialog.html',
controller: ...
0
votes
0answers
36 views
What is the best way to update view in AngularJS?
I have a directive that is used in controller from which I call the following custom service :
.directive("uiHeader", function( $rootScope, dateFilter ) {
return {
restrict ...
0
votes
0answers
15 views
AngularJS Google Maps Markers ng-show
I'm building a web app using AngularJS and the Google Maps for Angular directive (http://angular-ui.github.io/angular-google-maps/#!/) however I'm having trouble customising the map marker ...