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.
5
votes
0answers
2k views
Angular JS + Node JS + Passport + Spring OAuth2 Authentication/Authorization
I have doubt how to proceed with this autorization.
I am new with passport and AngularJS, but i would like to use them, they are very powerfull.
I have Spring REST API Secured by Oauth2, but I have ...
4
votes
0answers
60 views
Animation with display flex
When I open the item-accordion I have used the animation .But the item-accordion has the image that is wrap in the multiple row using display flex property of the CSS3. Whenever I open the accordion ...
4
votes
0answers
255 views
Authentication and Routing with Express/Passport, AngularJS and ensureLoggedIn not working on “/” url
I have a MEAN stack app generated with the Yeoman Generator Angular Fullstack generator. You should only have access to the site by logging in.
The repo for ensureLoggedIn is here
While logged out, ...
4
votes
0answers
145 views
AngularJS - Folder structure, login design, routes and grunt tasks
I am currently working on a new project and I would like to give it a good start to not mess up with the future iterations.
Description
The application will have 2 sides:
- the client side.
- the ...
4
votes
0answers
344 views
Ionic framework and angular ui calendar issue?
I am using ui calendar to provide a calendar view in my application.
Question:
The calendar loads fine and the calendar also accepts events just that I can not seem to access the calendar object ...
4
votes
0answers
123 views
How to wire SailsJS to BreezeJS
I'm looking at using Sailsjs for server side processing and validation and angular on the client side. Apparently BreezeJS supports Odata and WebApi for its interaction with the datasource. I know ...
3
votes
0answers
22 views
angular scrollstart and scrollstop don't fire in directive, scroll does
I have a directive as below:
.directive('scrollPosition', function($window) {
return {
scope: {
scroll: '=scrollPosition'
},
link: function(scope, element, attrs) {
var ...
3
votes
0answers
30 views
ngTouch's ngClick prevents checkboxes and videos from working in most mobile devices
I am currently trying out ngTouch's ng-click directive in my application and it seems to break some basic functionality in most mobile devices, (Android / iOS). The checkbox and videos that are ...
3
votes
0answers
90 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
143 views
Angular UI Bootstrap date-picker Combined With UI.Mask
I am using the angular UI bootstrap popup date-picker to build a directive that will easily allow me to add the date-picker where need.
When I combine this with the uiMask Directive, the values in ...
3
votes
0answers
907 views
Ionic navigation tab in header
Hey i've got a question about ionic navigation,
The main navigation of my application is in the footer, but i want to add an information tab to the header, I also want this tab to have it's own view ...
3
votes
0answers
268 views
AngularJS + Fullcalendar send error TypeError: Cannot read property '__id' of undefined
im using angular-ui-calendar in my website.
In the controller, i have writed this:
define(['underscore'], function (_) {
"use strict";
var SearchController = function ($scope, $location, ...
3
votes
0answers
100 views
Can I use Restangular.extendModel or extendCollection with a nested resource route?
Is it possible to use extendModel or extendCollection with a nested route?
e.g.,
http://myserver.com/topresources/nestedresources
...
3
votes
0answers
44 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
558 views
How to implement Swipe Gesture in IonicFramework?
I want to attach swipe left & swipe right on an image using IonicFramework.
From the documentation, I only got these, but no example yet:
...
3
votes
0answers
130 views
UI-Router modal changes existing views
I'm trying to use ui-router to trigger a modal for a certain state, rather than changing the entire view. To do this, I implemented a slightly adapted form of what is given in the FAQ, as I'm using ...
3
votes
0answers
200 views
Oauth2 Implicit Flow with single-page-app refreshing access tokens
I am using Thinktecture AuthorizationServer (AS) and it is working great.
With Implicit and Client flows, there is no token listed under AuthorizationServer (AS), I presume tokens here mean 'refresh ...
3
votes
0answers
286 views
Why do I get Lexerr:unterminated quote error?
I have the following template:
<!--Votez pour ce concept de bar:-->
<p ng-show="enabled('http://ballentines.herokuapp.com/{{finalist.slug}}.html') === 'novote'">Not voted</p>
...
3
votes
0answers
730 views
angular-ui-router with requirejs, lazy loading of controller
Could you help me to understand how to load controller in the example below before the view? It looks like the view is loaded just immediately while the controller is not loaded yet.
//app.js
...
3
votes
0answers
368 views
How to mock ng-grid when unit testing a controller
I'm currently trying to write tests for existing blocks of code and running into an issue with a controller that has a nested ng-grid inside of it. The issue comes from the controller trying to ...
3
votes
0answers
141 views
Angular UI-Router Can ui-view replace the original tag?
I want to be able to replace the original element tag with the template. This should basically operate the same as transclusion when using the "replace=true" property.
3
votes
0answers
269 views
Case insensitivity with angularjs ui-router
I'm building a new angularJS app, based from the AngularJS SPA Visual studio template (http://visualstudiogallery.msdn.microsoft.com/5af151b2-9ed2-4809-bfe8-27566bfe7d83)
this uses ui-router ...
3
votes
0answers
3k views
AngularJS Jasmine Test Fails: Failed to instantiate module
My angular app worked great and so did my tests, using karma and jasmine, until I added a dependency in ui.bootstrap. Now the app still works as expected, but I can't get my tests to run. This is what ...
3
votes
0answers
144 views
Passing parameters to JS Animation in Angular
I wrote this this Plunker containing a simple JS Animation, done via jQuery.css / jQuery.animate.
Short Description:
3 Rectangles are shown
Button "Randomize" randomizes width/height of
the ...
3
votes
0answers
254 views
AngularJS Calendar event-clicks not firing with ftLab fast click
I am working with AngularJS calendar (Which is essentially jQuery Full Calendar by Adam Shaw wrapped for angular). Here, the calendar event-item clicks worked both in ipad and desktop fine, until I ...
3
votes
0answers
1k views
Stop angular ui-router from reloading state's template and controller, if only params change?
I have state defined like:
.state("root.home.foo", {
url: "/foo/:id",
templateUrl: "/static/partials/home.foo.html",
controller: 'FooCtrl'
})
When in that state, I respond to a mouse ...
3
votes
0answers
176 views
Angular.js updating SVG templates in directives
A while ago I asked about "Angular.js rendering SVG templates in directives", where I was replacing the DOM nodes that angular makes when rendering templates, with SVG nodes. I got a response that ...
3
votes
0answers
236 views
Make only some cells editable in ngGrid?
I have an ngGrid that shows a few records with basically key / value content. Now, I would like to make some of these records editable.
Using the enableCellEditing features of ngGrid, I can enable or ...
3
votes
0answers
538 views
Implementing a reverse infinite scroll using ngInfiniteScroll directive in AngularJS
I would like to use the ngInfiniteScroll directive from here: http://binarymuse.github.io/ngInfiniteScroll/ in my angular js app to implement a reverse infinite scroll (like in a chat widget). However ...
3
votes
0answers
427 views
how angular.js detect that model was changed
I'm interesting, how angular.js inside detect that model was changed, and what is general angular workflow for handling this changes. I mean, what really happened next on the page, after I change some ...
3
votes
0answers
1k views
AngularJS ui-router state doesn't refresh on back
I have an app setup with 2 states, A and A.B done this way:
$stateProvider.state('A', {
url: "/A/{aId}",
controller: 'AController',
templateUrl: function($stateParams) {
...
3
votes
0answers
350 views
Accessing NotMapped Computed Properties Using BreezeJS and AngularJS
I've followed the examples laid out in http://www.breezejs.com/documentation/extending-entities, and the DocCode test labeled "unmapped property can be set by server class calculated property".
When ...
3
votes
0answers
392 views
$sanitize Custom Whitelist
The $sanitize service tells me that
All safe tokens (from a whitelist) are then serialized back to
properly escaped html string.
I want to only display an even smaller subset of HTML (viz ...
3
votes
0answers
140 views
Custom interceptor angularjs application using Parse service
I am trying to implement an interceptor for my server responses (PARSE) with angularjs, I have seen this project that uses the $httpProvider to register the interceptor.
since my service is not using ...
3
votes
0answers
1k views
Angular Directive with templateUrl - Issue on Plunker?
Can I link to a specific file within a Plunker? Specifically, I'd like to use Angular's "templateUrl" within a directive to externalize the HTML for a directive I'm building:
...
2
votes
0answers
20 views
Cordova plugins not working with ionic
I have an Ionic app built with Angular.
I am using is Calendar plugin:
https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin
I want to create events through the plugin and save them to the ...
2
votes
0answers
16 views
Disable form while uploading fail in angularjs
I don't know what is wrong with my code. The form is not disabling while I try to upload the file. Hope someone could help me with this. Thank you!
<div>
<ng-form name="formImport" ...
2
votes
0answers
37 views
Error: JSON.parse: expected ',' or ']' after array element
Am newbie to Json am getting this error while call json my json file expected ',' or ']'
[
{
"modules":
[
{
"title":"name of module1",
...
2
votes
0answers
29 views
Ways to send $scope to be used into prototype functions
I'm trying to figure out ways to let the $scope available to access from my prototype methods:
Sending $scope as a parameter:
var myController = function($scope, Service) {
$scope.myMethod = ...
2
votes
0answers
69 views
ionic Back button incorrectly shown while switching tabs
I have a main tab, which just shows the list of items. and settings tab which has nested view for setting different configs.
If I navigate in this particular order, the back button is shown ...
2
votes
0answers
33 views
Use RequireJS to lazy load AngularJS DI components
I have a question about lazy loading services and factories. I've been researching this for over a week now and haven't found a satisfactory answer. I have found: Lazy loading AngularJS modules with ...
2
votes
0answers
39 views
Page leaving prevent confirm dialog AngularJS + SpringMVC
We have web application which was written with springmvc.
Here we have jsp for rendering HTML and we use jQuery.
Based on jquery we implemented pageleaving plugin which handles IE7 too.
We catch all ...
2
votes
0answers
20 views
ui-router: Prevent resolve to be resolved when activating a state in one of the resolve
In the home state, I have a function that checks if the current user is authorized along with other promises.
resolve: {
authorize: ['AuthService', function (AuthService) {
...
2
votes
0answers
34 views
Is there a way to disable triggering of $digest on every $http.get?
Background
angular's $http service is triggering a $digest on every get (if no $digest is already running):
if (!$rootScope.$$phase) $rootScope.$apply();
Ia addition to fetching objects from ...
2
votes
0answers
21 views
ui-router deferIntercept and state params
I use the new deferIntercept() of ui-router to update the browser url without reloading
my controller:
$rootScope.$on('$locationChangeSuccess', function(e, newUrl, oldUrl) {
e.preventDefault();
...
2
votes
0answers
113 views
Using .then causes the Error TypeError: undefined is not a function
I have a promise I want to be fulfilled once a .map function is finished so I put .then and resolve my promise. When doing this I run into the error TypeError: undefined is not a function and I am not ...
2
votes
0answers
53 views
Angularjs + Python Eve Token based authentication
I am currently implementing a auth APIs for python EVE.
There are quite a few projects around token based auth in Angularjs notably https://github.com/sahat/satellizer
My question is, How could I ...
2
votes
0answers
27 views
Using and injecting Angular $templateCache with RequireJS
I do a grunt serve:dist and within I build with grunt-contrib-requirejs an all.js file based on my RequireJS main.js file which have require.config and a require section.
I think all.js should be in ...
2
votes
0answers
49 views
Angular: GET request for template url mysteriously fails 2nd time
I've got an Angular app which relies on using some template-urls
The app is running in an iframe (please don't question why)
There's a javascript button on the parent page, which reloads the iframe ...
2
votes
0answers
75 views
angular binding failing on Chrome but not Firefox or IE
Angular JS is binding perfectly well in IE11 and in FireFox, no errors. But in Chrome, still no errors, the binding fails in the UI controls, but in the plane text dump, it renders fine.
Chrome
...