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
0answers
3 views
Links clicked in emails not finding their proper template and controller with ngRoute
If I set a link in an email to link back to say an /password/edit route, it resolves to the '/' route.
http://localhost:1337/#/password/edit?token=ZL6VusxDU
resolves to
...
0
votes
0answers
5 views
how to use angular-input-mask with a screen button
Hello I'm having a problem for the past 2 days using the angular-input-mask module
I'm trying to achieve the same effect I get when using my keyboard on a button on the screen.
<input ...
0
votes
0answers
7 views
$httpBackend.flush() causes factory property to be undefined (Karma testing)
Okay this is really stumping me...
I have the following code in my factory (summarized)
angular
.module('enigma.authFactory', [])
.factory('authFactory', authFactory);
...
0
votes
0answers
5 views
Test Angular 2 component in ES5?
I'm starting a new Angular 2 application. I have a simple component that is essentially a dropdown select box. The component takes a few objects as properties (in the app, through attributes on the ...
0
votes
1answer
9 views
Access $scope from within event bound inside the directive
I am trying to access the $scope of a directive inside an element event. However, it is not happening.
When the $element blurs, the div, dyamically created, should have a class called "isok" because ...
-1
votes
1answer
19 views
angularjs view not updating while model changed
I am working on angularjs project now.
I would like to create custom check box filter and pass data source and selected id list from controller.
The model in view should be updated While check box ...
0
votes
0answers
8 views
Using $sceDelegateProvider to whitelist Youtube in Typescript
I'm trying to allow users to enter Youtube URL's so I can display the videos on my site, but I need to whitelist Youtube first. How can I fix my app.ts file to accommodate this in typescript? The ...
0
votes
1answer
29 views
Detect change to ngModel (Angular 2)
I am attempting to do something very simple: detect a change on ngModel in a <select> tag. And in Angular 1.x, we might solve this problem with a $watch on ngModel or by using ngChange, but I've ...
0
votes
2answers
11 views
Querystring on Routes in angular
I would like to configure my routes to be able to accept any integer after its' URL.
For example,
/product/id/1242
This integer will be accessed by the API factory as a value to be queried by the ...
0
votes
1answer
14 views
AngularJS add/remove filter using button
I have a few 100 records obtained from database (exam results of students) and I filter the results based on few criteria like subject.
<tr ng-repeat="t in search.samplesfilter = ( search.samples ...
1
vote
1answer
13 views
I have a JSON with several fields and a key of keys, how can i by $resorce of angularjs bring only this key of Keys?
My Json is this
[
{
"usuario": {
"id": 2,
"username": "licorera1"
},
"productos": [
{
"id": 2,
"descripcion": "Botella",
...
0
votes
0answers
13 views
How to Add URLs to AngularJS After Initialization
In my AngularJS app, my config file runs setting up URLs. Then, after the config has been set up an API call is made that gets a bunch of elements that need specific URLs. How can I add a URL to my ...
0
votes
1answer
25 views
Combining promises in Angular 2
Is there any way to combine promises in AngularJS 2?
In Angular 1, for instance, I would use $q.all to combine multiple requests into a single promise.
Is there an equivalent for Angular 2?
1
vote
1answer
13 views
provider not found for underscore
i have an angularjs factory to which i am injecting underscore and application is working fine but when i try to write jasmine test cases on it i am getting an error underscore provider is not found
i ...
-6
votes
0answers
30 views
Best frontend technology the works well with Java backend [on hold]
I have an application with the following components:
Java back-end that provides Restful API
An android application that consumes data from the back-end
an Angularjs based single page application ...
1
vote
0answers
9 views
SVGPathSeg is deprecated and will be removed in Chrome 48. See https://www.chromestatus.com/feature/5708851034718208 [duplicate]
Getting SVGPathSeg is deprecated and will be removed in Chrome 48. See https://www.chromestatus.com/feature/5708851034718208 error in my angular application because i am using 'pathSegList' in my code ...
0
votes
2answers
14 views
Alternative binding syntax in Vue.js
Question
I want to know if there is an alternative syntax to output data in Vue.js, instead of the curly braces, like the ng-bind Angular directive.
Reading the docs, it seems that Vue.js accepts ...
1
vote
1answer
13 views
Passport middleware expected parameters
I'm trying to pass login information from a form via angular to a back-end express endpoint. The passport middleware that is doing the authentication fails every time and goes to the failure ...
-1
votes
1answer
9 views
Angularjs translate use $http call the json data instead of using staticfilesloader
Here is my code.
.config(['$translateProvider', function ($translateProvider) {
$translateProvider.useStaticFilesLoader({
prefix: './scripts/json/',
suffix: '.json'
});
...
0
votes
3answers
28 views
Prevent $scope from overriding
I am using a controller to set the icon image for each list in my ng-repeat directive. Right now the $scope.icon_level overrides all the other values with the last value given to the scope. How can I ...
0
votes
1answer
28 views
Angular - Failed to instantiate module materialism module materialism is unavailable after calling $state.go()
Materialism is the name of the app as defined in app.js:
var app = angular.module('materialism', [
The problem:
My files. If I refresh the page in browser after routing, I do not get any errors. ...
0
votes
3answers
15 views
Trying to pass jQuery plugin callback function to a controller function using a directive
i'm using a jQuery plugin that implements some callbacks which I would like to use. I'm trying to send the callback function directly to the controller but the parameters are not sending properly.
...
1
vote
2answers
20 views
D3 AngularJs Force Directed Graph
I am trying to create a force directed graph but written in AngularJs instead. I have written my application in Angularjs but I am not understanding how to add my json to $scope.data, and anyway to ...
-1
votes
1answer
12 views
show only clicked element values from multiple ng-click events angularjs
i have 10 more ng-click events, but i want to show only clicked element value where i have to change, but i updated in code there was so many duplicates i have to write, pls help me that have to show ...
0
votes
0answers
8 views
Unit test isolate scope directive with passed in function calls
I have a directive that has a directive controller associated with it. It has an isolate scope in which a function gets passed into the form-submit attribute. In my test, I want to test that the right ...
1
vote
0answers
39 views
how to resolve race condition in Angular Js
I am trying to call a service method in a controller. Here is my code. ROAService.js:
return{
loadROAValues:function(userId,roaId){
var ...
0
votes
0answers
9 views
Pass php a base64 encoded image from angularJS
I am having a very strange problem where my $_POST data is showing up in my firebug debugger, but not when I echo it out. When I output the $_SERVER I did get information about the server however, ...
0
votes
0answers
12 views
handling 404 in Angular-Meteor
I'm using Angular-meteor using the Angular UI-Router and i cannot handle the 404 errors, I'm wondering if anybody had to deal with that specially it's ABC for SEO.
Currently i'm redirecting any not ...
3
votes
1answer
17 views
$getRecord does not result in a $save method being available in Angular Fire
I am using Firebase and AngularFire to try to keep my dat synced. My code is:
var questionsRef, ref, ref1;
questionsRef = fbase.child("questions").orderByChild("subject").equalTo("english");
...
0
votes
2answers
20 views
Ionic & Angular JS form validation show message in placeholder
I'm using Ionic and trying to make a login form with validation, but how can I display the error message in the placeholder of the input box instead of using ng-show?
Besides, how to change another ...
0
votes
1answer
40 views
two way binding doesn't seem to work. List is not automatically updating
I'm having troubles updating a list. At first I fill my list by fetching information from a $http.get request. Later I enter something in a text box and I try to update the list with the response of ...
0
votes
0answers
13 views
What tool to use for testing Angular views? Services, Factories, and Controllers are all being tested with Jasmine and Karma
I am new to the world of unit testing. So far I have been able to test all of my factories, services, and controllers using Karma and Jasmine. I have been spying on a lot of the restangular calls and ...
4
votes
0answers
40 views
How to instantiate ng-controller based on a condition
I asked this question but the specific question I'm asking has changed dramatically.
I have a piece of code:
<div ng-attr-controller="{{pings || 'PingsCtrl as pings' }}">
<h1 ...
0
votes
0answers
3 views
Sessionstate in Daftmonk angular-fullstack
So I've been searching for an answer on this one, but is there a way to store a local session in Daftmonks angular-fullstack generator? Something similar to the angular library LocalStorage, or do one ...
0
votes
1answer
9 views
Modify Class but Retain Class after Async
I have the below style created, how this currently works is that I am using AngularJS to call an API which will return JSON. The response is true or false and based on the values from the database the ...
3
votes
2answers
21 views
Pass jQuery dependency to angular js controller
I am using angularjs 1.4, and in one of my angular controller I have to use jQuery. but when I am trying to pass it as dependency, it is not working.
I tried below code, but no success
(function () ...
0
votes
1answer
15 views
Firebase prevent “Password” Registration spamming
I have an application running on Firebase, and i noticed an usual registration in my database. So, i went through my code to find the issue. And realised if I write this code in my browser console.
...
0
votes
0answers
15 views
providerInjector vs instanceInjector and providerCache vs instanceCache in angularjs
What is the difference between providerInjector vs instanceInjector and providerCache vs instanceCache in angularjs
0
votes
0answers
8 views
issue with scroll to specific part of page(rails + angular)
I have a polymorphic_path(@review.tool, anchor: "_review_#{@review.id}")
which generates the url /software/11#_review_124
We use angular at front end and angular converts the url to ...
4
votes
1answer
27 views
Angular / lodash - remove multiple objects from a collection
DEV TOOLS
Angular 1.4.8, lodash 2.x
QUESTION:
I'm still an Angular & JS. Is there a more concise approach to deleting multiple object instances (e.g. Article/s in a Articles Collection). The ...
0
votes
0answers
16 views
AngularJS - Getting “Argument 'fn' is not a function, got string” when testing a specific controller
I am trying to make some unit tests for my AngularJS app. I have made several of tests suites already, all of them working. However, when testing a certain controller I get the following error:
...
0
votes
1answer
22 views
Capture html5 video event in angular controller
<video id="video-player" ng-click="togglePlayer($event)"
oncontextmenu="return false" autoplay="true" loop
class="composition-video" ng-src="{{url}}" ...
0
votes
0answers
7 views
mdl-layout__header--waterfall within ui-view
I tried the Waterfall header example from Material Design Lite given here http://www.getmdl.io/components/index.html#layout-section
It works as expected when I put the <header> content directly ...
0
votes
0answers
8 views
$resource calls not firing with ADAL JS / MS Dynamics
I'm writing a web resource in Angular for Microsoft Dynamics 2016, and trying to hit the Web API with $resource once I'm authenticated against our Azure AD environment. Its correctly authenticating ...
1
vote
1answer
17 views
Issues unit testing controllerAs: logging controller returns a promise
I'm trying to test a controller which uses the controllerAs syntax. My problem is that when I try to test a function on the controller, I get "Expected undefined to be defined."
Controller ...
0
votes
0answers
12 views
Element “attached” to cursor lags when cursor is moved (Angular)
Plunk here
General idea is that I want a tooltip-type div to appear on the bottom right of the cursor when it's moused over a certain element.
I've done this with a pretty straightforward directive.
...
1
vote
0answers
17 views
change label name of append text value on each together angularjs
I want to change append label name each together from ng-show field label, when we click on appened div it shows filed label. How can I change each label name from field label?
var app = ...
2
votes
1answer
29 views
Object not passing to controller from factory method
I am trying to create a factory that will query Firebase and iterate through the results to pass the logged in user's profile object to the controller.
This is the factory:
'use strict';
...
0
votes
2answers
33 views
Spinner while waiting for ng-repeat
I'm trying to build in angularJS a select dropdown that has several thousand options. While the view is getting built, the app hangs. Is there a way to hide this dropdown behind a loading image ...
1
vote
0answers
10 views
Adding external module not in NPM or bower using browserify?
I'm trying to use this starter project:https://github.com/leesei/angular-material-chart-gulp-browserify-boilerplate to kick-off my project but I don't understand why 'angular' is not defined in my ...