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.
6
votes
0answers
54 views
jquery bxslider is not working with templates inside ng view
I'm using jquery bxslider on my first angular project. It is not working with template inside ng view. If use this one without ng view means it is working.
This is my HTML page:
<!doctype ...
6
votes
0answers
256 views
How to work with ng-polymer-elements , angularjs and requirejs together?
I'm trying to use ng-polymer-elements with angular and requirejs. I did follow this instructions https://github.com/GabiAxel/ng-polymer-elements and I had not success. When I do remove the instance ...
5
votes
0answers
167 views
How to config Angular ui-router to not use strict URL matching mode
ui-router's version 0.2.11 introduced option to turn off strict URL matching, but I can't figure out how to actually use it.
I've tried standard config as they use in tests:
app.config(function ...
4
votes
0answers
22 views
Uncss Ignore option isn't working
I'm trying remove the css with uncss but it's removing all the styles no matter if they are listed on the ignore array.
The 2 files that I want to compare are just the index and the app.min.js which ...
4
votes
0answers
55 views
Check peyload data of POST request with Protractor
Let's say i have angular page with a couple of input elements and save button.
After Save button is clicked POST request will be sent.
I'm writing Protractor e2e test for this page.
The question:
...
4
votes
0answers
70 views
Framework for excel like spreadsheets
I was wondering if there are any frameworks available for querying the database like select statement on a table, etc..
I have to create a web portal which will allow users to query the databases ...
4
votes
0answers
120 views
Node-webkit + Angular.js Uncaught Error: [$injector:modulerr]
I've got this files
lib/
|-angular.min.js
|-angular-route.js
|-angular-resource.js
index.html
package.json
The main index.html
<html ng-app="example">
<head>
<meta ...
4
votes
0answers
108 views
How to structure AngularJS and PaperJS 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 ...
4
votes
0answers
1k views
3 level nested views combining Tab Navigation & Side Menu Navigation with Ionic Frameworks
I see many examples out there combining the tab navigation & side menu navigation together but they are not nested, or example with nested views on side menu navigation only, in my case, I'd like ...
4
votes
0answers
276 views
Unicorn workers timeout
I'm developing an AngularJS (front-end) running in an Nginx web server that sends request to a Rails API (backend) running in a Unicorn application server.
I recognize I'm just a developer and I ...
4
votes
0answers
179 views
$routeChangeStart getting called multiple times in IE8
We are supporting IE8 browser for our application. Recently we are upgraded angular version from 1.0.8 to 1.2.16
application with newer version works in all browsers however we seen the issue with ...
4
votes
0answers
579 views
How to get SonarQube to play nicely with AngularJS?
I've been looking at using SonarQube to do quality checking on some javascript code, but this code is written using AngularJS.
One of the SonarQube rules checks the number of lines in a function - ...
4
votes
0answers
205 views
Angular 1.2.5 nested animations
Using ng-view, I would like a simple fadeIn / fadeOut for page transitions. However, in different "views" I have child elements that I would like to animate at the same time as the fadeIn/fadeOut are ...
3
votes
0answers
54 views
Node.js app example using dependency injection
I really like how dependency injection is done in angular, so I would like to use similar pattern in node. There are a lot of modules which tends to be DI containers and it's not easy to choose.
Are ...
3
votes
0answers
32 views
how to use log4js in angular test case with karma?
currently I need to add log4js support in my angular test case, like below:
it(' QuestionController saveQuestion method Testing ', inject(function(localStorageService) {
***var log4js = ...
3
votes
0answers
76 views
How can I fix the angular.js routing in my app?
I'm writing an application on mobile platform steroids, angular.js and firebase.js. Recently I've faced such problem: the page does not load, because it is trying to access a strange url ...
3
votes
0answers
58 views
How to target a specific Ionic view with $rootScope.$broadcast
Using Ionic, calling $rootScope.$broadcast("$ionicView.enter") will trigger all child views having an event handler for the $ionicView.enter event.
How can I narrow this down to target the handler ...
3
votes
0answers
36 views
function in $parsers-array not called in a custom directive
I want to check the changing of a value in a custom directive.
To do this, I use $parsers unshift-function to add my own function
But, my own function is not called!
This is my view:
<div ...
3
votes
0answers
34 views
RequireJS + Angular: Undefined app. Callback doesn't shoot
I got main.js with this simple code:
'use strickt';
require.config({
paths: {
'angular' : 'libs/angular' ,
'angular-router' : 'libs/angular-route' ,
},
shim : {
...
3
votes
0answers
35 views
Angular Interdependent Services: Avoiding circular dependncy
I have two separate GUIs that are part of the same system. One at the top of the screen (navEditor) and one on the side (routeEditor).
They need two update each other frequently, and call each ...
3
votes
0answers
78 views
REST service cache strategy with AngularJS
I have an AngularJS application and I want to cache the REST service responses. I found some libraries like angular-cached-resource which can do this by storing the data into the local storage of the ...
3
votes
0answers
49 views
How to trigger window.onbeforeunload in jasmine test
Currently, I have created a directive attached to a form. Anytime the form is dirty, I have a confirmation modal by window.onbeforeunload pop up when trying to leave. Right now I'm trying to write a ...
3
votes
0answers
62 views
How to mock service in angularAMD with karma/jasmine?
I have a project using AngularAMD/RequireJS/Karma/Jasmine, that I have the basic configuration all working, most unit tests run and pass successfully.
I cannot get a mocked service injected correctly ...
3
votes
0answers
211 views
ADFS 3 OAuth 2 CORS Error
I am adding ADFS authentication to an Angular SPA web site with a WebApi back end. To accomplish this I have set up the ADFS instance with a client and a RP.
In order to log into the SPA the user ...
3
votes
0answers
120 views
Can I use angular/di.js with an AngulrJS 1.3.0 project?
The new dependency injection that Volta spoke about at ng-conf and is contained here: https://github.com/angular/di.js is just what I am looking for for my AngularJS 1.3.0 project.
The problem is, it ...
3
votes
0answers
199 views
Server side validation with Spring MVC and Knockout JS
Qustion:
I am looking for a good solution to validate my data in Spring MVC controller and populate the errors with Knockout JS. I imagine something similiar to the existing <form:errors ...
3
votes
0answers
217 views
Uncaught Error: Load timeout for modules: authInterceptorService in requireJS and angularJS
I have now a problem regarding my requirejs.. it shows an error Uncaught Error: Load timeout for modules: authInterceptorService
Here is my code.. is there any problem with it?
main.js
...
3
votes
0answers
150 views
AngularJS and Web Api Social authentification
I need some help for authenticate my angularJS app and my rest api(WEB API) with external social logins( twitter, facebook, google, etc).
Im working with Web-api and angularJS app(not spa project ...
3
votes
0answers
151 views
Webpack multiple requires resolving to same file but being imported twice
Hello I just had this problem with webpack. If I do require('../something') from one file, and then I do require('../../something') in another file they both end up resolving to the same file. However ...
3
votes
0answers
133 views
Excel (xls) preprocessor for karma
I've come across a block of code in our Angular application that makes use of xls.js to open and process Excel files in Javascript. The problem is how I can go about testing these functions?
I'm ...
3
votes
0answers
344 views
Facebook sharing: going from 'feed' to 'share_open_graph'
I'm messing around with an Angular app, let's say for the sake of argument that I'm not using any meta tags, how can I use the Share Dialog to let users share pages of my app?
Using the old Feed ...
3
votes
0answers
708 views
Warning: Task “karma” not found. Use --force to continue
I've generated an AngularJS project by using Yeoman by running
yo Angular myProjectName
And I then ran
grunt
to build the project. But then the build got abborted because of warnings:
...
3
votes
0answers
517 views
How to disable the #hashbang redirect on IE8 and IE9 in angularjs
I have an angularjs (v 1.2.19) application that consists of two separate html pages (or actually these are two seperate angularjs apps in one folder):
index.html
edit.html
I am having some ...
3
votes
0answers
296 views
Form Data is correct when POSTing in Angular, but req.body is empty in node?
I am trying to do a simple POST call to a RESTful API that I created. I am using Angular for the client-side, nodejs for the server, and mongodb+express+multer for the database.
When testing the ...
3
votes
0answers
806 views
$state.go not working with 3rd-level nested state (using Ionic tabs / AngularUI)
I'm trying to use $state.go to switch between tabs in an Ionic (+AngularJS UI Router) application, but I can't make it work with a sub-sub-state (state.substate.subsubstate). It actually works fine ...
3
votes
0answers
217 views
how to obtain percentage as tooltip in nvd3 pie chart?
I have a nvd3 pie chart, I am obtaining the percentage value as label but I want it in the tooltip.Here is the HTML
<nvd3-pie-chart data="Data1"id="labelTypePercentExample"
width="550"
...
3
votes
0answers
128 views
yo generator installation error: “the package yo does not satisfy its siblings' peerDependencies requirements!”
I have tried install the yo generator for angular-full-stack.
But I just got the following error:
"the package yo does not satisfy its siblings' peerDependencies
requirements!"
3
votes
0answers
95 views
Binding node webkit nwdirectory to ngmodel
Node-Webkit exposes a way to select a directory with <input type='file' nwdirectory/> but how can you bind a angular model to the selected folder?
I tried:
.directive("getDir", [function () {
...
3
votes
0answers
89 views
Angularjs aborted promises still delay other promises
I recently posted this question and figured out the direct solution (that being, I was able to cancel a promise/request when the route changed). However, I'm encountering another, related problem that ...
3
votes
0answers
113 views
What are the best practices for using angular DI with libraries like Modernizr, lodash, and jquery plugins?
I've noticed that it is not common to wrap third party scripts in a angular js provider for dependency injection and I am not sure why. I am new to angular and trying to figure out what the best way ...
3
votes
0answers
145 views
How can I store and set the user on this angularjs devise library auth service? Or is it being done already?
I am using the cloudspace angularjs-devise library on the client. When I try to login/register I get a 200 ok response with the plain user object visible in the chrome js console. Refreshing the page ...
3
votes
0answers
88 views
Using Flask-SQLAlchemy Event API to broadcast to Flask-SocketIO?
I'm a novice developing a simple multi-user game (think Minesweeper) using Flask for the API backend and AngularJS for the frontend. I've followed tutorials to structure the Angular/Flask app and I've ...
3
votes
0answers
62 views
FireFox editableCellTemplate only enabling editing one time
In Firefox, we have an editableCellTemplate of:
<input type="number" ng-class="\'colt\' + col.index" ng-input="COL_FIELD" ng-model="COL_FIELD" />
The first time a user clicks, it allows him ...
3
votes
0answers
645 views
Karma error - Chrome have not captured in 60000 ms, killing
DEBUG LOG:
E:\Projects\abb\Projects\WebApp\abb.web>karma start
DEBUG [plugin]: Loading karma-* from E:\Projects\abb\Projects\WebApp\abb
.web\node_modules
DEBUG [plugin]: Loading plugin ...
3
votes
0answers
112 views
Why can't I view source maps with Angular and Browserify?
I am trying to step into the Browserify world. I am using a this tutorial as a starter. The source maps work fine. As soon as I require in angular the source maps disappear. Here is my browserify ...
3
votes
0answers
79 views
onbeforeunload - Can I get the reason of invocation? I want to identify a redirect
I need to pop-up a 'verify save' message using the onbeforeunload event (when the user closes the window or clicks a link that 'leaves' my Angular app page).
That works great, but I realized that ...
3
votes
0answers
222 views
angular-translate doesn't take into account fallback language when using static files
I'm trying to use angular-translate with angular-translate-loader-static-files.
When I do this:
$translateProvider.useStaticFilesLoader({
prefix: 'strings',
suffix: ...
3
votes
0answers
860 views
Getting module Injection error with Angularjs ui-bootstrap
I want to use Angularjs Bootstrap UI in my application.after angular.js reference i include these files in my index pages :
and in my application app.js include this line :
var ap = ...
3
votes
0answers
148 views
AngularJS use a directive to prevent other directives to execute
Some actions in my Angular app require the user to be registered. If the user is not registered we want to show a "Register modal" and prevent the original action.
Those actions can be triggered via ...
3
votes
0answers
233 views
AngularJS html5mode and rails routes
I have followed all the github issues on HTML5Mode breaking Angular apps in 1.5. I am having the same problem but none of the fixes are working for me.
Im doing the following:
<base href="/">
...