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. The ...
0
votes
0answers
4 views
Angular stateProvider - Dynamic Controller using Require hangs for first few clicks
I've been using Require JS to inject dependencies as needed in my app. But facing a strange problem on first few menu clicks.
StateProvider Config
$stateProvider.state('app.approve.ApproveUser', {
...
0
votes
0answers
5 views
How to add , delete and edit new object in the array from AngularJS to FireBase
I have these function in one controller I successfully inported the data but i cannot use $add , $remove and $edit. i Use $RootScope because the items that are saved are in different state and hence ...
0
votes
0answers
9 views
When '/' is used for url of a parent state two slashes appear in url
I have the following states:
.state('banksList',
{
url: '/',
...
})
.state('banksList.bank',
{
url: '/bank/{bankId}',
...
0
votes
0answers
4 views
$window inside app.config $httpProvider.interceptors.push block in AngularJS failing tests
Just updated an $httpProvider.interceptor (responseError) to use $window.location.href='/login' instead of $location.path='/login', but now PhantomJS is complaining:
PhantomJS 2.1.1 (Mac OS X 0.0.0)
...
0
votes
1answer
9 views
why my html page is not getting render in <ui-view>?
I am trying to wireup angularjs with rails. I am having some issues with my views. They are not getting render in
My view is getting fetched but with an error [HTTP/1.1 404 Not Found]
In ...
0
votes
2answers
11 views
How can I select/click an element with a for=“” attribute? [protractor]
I'm writing a protractor test. I want to click on an element with the text "Click Me", how can I grab such an element with the following attribute:
//view
<label class = "tile-label ng-binding" ...
0
votes
0answers
4 views
angular/node.js POST for payumoney integration
I'm using angular/node.js stack for payumoney integration.
On the angular side, an order is placed using $http.post to a route endpoint at the server side (node.js) as follows:
...
0
votes
0answers
6 views
bower_component jquery plugins not being invoked in angularjs app
Overview
I have several jQuery plugins that I'm intending to use in an AngularJS application. I install my jQuery plugins via bower. I use gulp-inject to put those dependencies in my main html. I ...
0
votes
0answers
14 views
Read HTML File into template in Angular 2?
I'm trying to create dynamic modals in Angular 2 using the ng2-bs3-modals. I would like to fill in the modal html body text dynamically based on the parameter passed to the selector used in the main ...
0
votes
1answer
22 views
Icons inside tooltips
I'm trying to put icons inside tooltip, but something is wring. The idea is user see some colored box which means different events, inside of this box he sees for example number 3, this number means ...
2
votes
0answers
8 views
Setting up Instagram Authentication
I'm having trouble setting up authentication with Instagram. My goal is to acquire an access token to post comments to a user's account.
I seem to be having a CORS issues because I keep getting this ...
0
votes
0answers
10 views
Angular JS - Switching currency in isolated shopping cart directive
I am working in a webshop project with Angular, and for the shopping cart I was intending to use ngCart, but when trying to change currency, I have hit a wall. First I tried to make a filter, but as ...
0
votes
0answers
3 views
angularjs ivhtreeview browser WAVE(WEB ACCESSIBILITY EVALUATION TOOL) GIVES ERRORS
I am using ivh-treeview in one of my applications. When I run the WAVE(WEB ACCESSIBILITY EVALUATION TOOL) tool, I see errors something like below. How do I fix this. Below is the div which uses ...
0
votes
0answers
18 views
How to change my angular controller and node server code to post data into my database
How to change my angular controller and node server code to post data into my database
Controller
var app= angular.module('App',[]);
var PD;
var address=null;
var pid=1;
...
0
votes
2answers
24 views
HTML not recognizing a controller in angular
I am following a video tutorial video for Angular JS and started the topic of using a controller as syntax. The example I am working on yields a different result from the one in the tutorial, ...
0
votes
0answers
8 views
How to resolve too much recursion error in angular-rails app?
I am getting this error while loading the homepage.
Error: too much recursion
...
0
votes
0answers
12 views
Page refresh issue while using angular HTML5 mode nodejs angularjs
Not sure what could be wrong with below snippet.. i'm getting error saying -
"Can't set headers after they are sent."
Here is my code -
app.get('/users', function(req, res, next){
...
0
votes
0answers
12 views
Post value of md-datepicker back to server
I am playing around with angular and material for a while now (coming from jquery, it was a little bit an effort). I do understand that it is a pure client based thing, but what is the client without ...
0
votes
1answer
29 views
How to add a control to a input file using angularjs?
I want to require an input of type file using angularjs without using the attribute required in the HTML code.
My interface is : enter image description here
I want to get an alert after hitting the ...
0
votes
0answers
14 views
Selected and ng-selected, can't find the error
I'm using the following code in my angular template to render forms for a select box(in Slim, I can update with standard HTML if needed)
.form-group
label Division
p {{ department.division.name ...
0
votes
3answers
35 views
How do I access this scope variable inside of isolated scope directive?
This is my situation in psuedo code
<div data-ng-controller="test">
<div isolated-directive>
<select ng-model="testControllerScopeVar">...</select>
...
0
votes
0answers
23 views
TypeError: Cannot read property 'session' of undefined
I am working with the angular--fullstack generator, and everything has ran smoothly until now. I do not know what I changed, but now my server task is halted by this error.
...
0
votes
0answers
16 views
Multi-Level Component Callbacks in Angular 1.5
I am coming from a React / Redux mindset where data-manipulation functions as well as data are passed from parent to child to grandchild etc. Components themselves do not modify data, rather they pass ...
0
votes
0answers
14 views
Angular ng-repeat not showing data from Meteor.call
I'm trying to get data to a view in an ng-repeat.
Here's the controller
class dashboardFaqsCtrl {
constructor($scope, $reactive) {
'ngInject';
$reactive(this).attach($scope);
...
0
votes
0answers
10 views
AngularJS HotTowel invoke spinner during ajax call
I am trying to invoking the spinner during any xhr call within the application. Whereas the spinner appeared when I click at menu or route to different page.
Index page
<aside ...
0
votes
1answer
23 views
Search in whole collection(mongodb) using nodejs
I want to implement whole search feature in Mongodb collection using Nodejs.
What should I pass to SaleModel.find() so given value search in whole collection?
Here is what I have try so for but it ...
0
votes
0answers
3 views
October CMS - Ajax URL?
I want to use Angular JS for October CMS. But how to i POST data to the controllers?
I found this in the October framework.js file
headers: {
'X-OCTOBER-REQUEST-HANDLER': handler,
...
1
vote
3answers
27 views
HTTP Request error vs response error
i am looking on $http interceptors. And i see there is requestError and responseError.
1) What is the difference between requestError and responseError?
2) In what condition does requestError ...
-1
votes
2answers
15 views
what is the role of $watch service?
i have a below code in which i want to change UI View using Ng-switch based on $scope value change.
but for me it works normally then what is the use of $watch
var app = angular.module("myApp", ...
0
votes
0answers
13 views
Why am I getting 401 to call rest API when logged in
My rest apis are secured with Spring Security with the following configuration:
//websecurityconfig
protected void configure(HttpSecurity http) throws Exception {
http
...
0
votes
1answer
17 views
$location.hash() troubleshooting
So I want to have a navigation bar that controls the location and only shows pages that are visible. A bit like the default "office" bootstrap example, but hiding sections that are not visible and not ...
0
votes
1answer
26 views
how to add/remove change 'disabled' or 'checked' attribute using angular.js
I was looking to toggle a switch(also disable) using check box,and I came across html attributes checked/enabled, it works fine if I type it into the code it works well, but I am not able to figure ...
1
vote
2answers
40 views
Uglifying AngularJS
I have an app I am demoing and want to demonstrate how dependency injection works. I have the following code:
wpApp.controller('ListCtrl', ['$scope', 'Posts', 'Pages', function($scope, Posts, Pages) ...
0
votes
1answer
17 views
Node server creation
I have installed meteor library.
I want to run an angular project which has no back-end (of static content).
I want to create a server file using node.js for static content.
Is it possible to to ...
0
votes
0answers
24 views
controller undefined when named views
Following works perfect.
In my application file app.js, i have states like
.state('nna.home',
{
url: '/home',
views: {
templateUrl: 'views/home.html' ...
1
vote
1answer
27 views
ng-show/hide is removing everything
I have a dynamically populated tree list that I have shown and hidden. The problem is randomly, the entire list will vanish. Even things that don't have an ng-show are gone. I have tried pretty much ...
0
votes
0answers
2 views
Why dx-popup window popsup after load page?
I have a simple AngularJs application, i have a Homepage.html at this page i have a ng-view block:
<body ng-controller="defaultController">
<div>
<div ...
0
votes
0answers
21 views
handle state routing in angularjs
I create a simple system for the password recovery.
after a user requested to change his password, he will get an email which has the link to set his new password, and this is the state responsible ...
0
votes
0answers
19 views
add compile html to form with $compile and ng-click
I need help approaching the problem better or guide me a bit, I'm new angular.
My problem is this, I have a form used to add parts of a query that will be stored in the database.
<select ...
0
votes
2answers
15 views
Angular Directive and componet
Which is the better way to develop an app in angular.Since I am new in angular.Also does it support JQUERY files.Please suggest the best way to learn.?
0
votes
0answers
20 views
CSS - Divs in a circle with extra room at certain intervals
I am using angular-js to recreate the following flash application:
http://www.drakkashi.com/secretworld/.
I found a few tips and tricks to create a circle of divs using only css(3). The problem is ...
-1
votes
1answer
24 views
Extra large background modal using small Bootstrap modal
I'm having an issue with a Bootstrap modal where if I change the size to small, there is a lingering backdrop modal behind it that is still large.
In the Elements window I can remove the ...
1
vote
0answers
10 views
Angular-translate: translate different portions of the page with different languages
I'm writing a web application using AngularJS 1.4.x and I'm using "angular-translate" as localization library.
The app supports 2 languages: English and French.
The user can switch between these two ...
0
votes
1answer
16 views
Two toggling elements with ngHide flash on screen momentarily
I have a couple of containers that show text based on a scope property:
<style>
[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak{
display: none !important;
}
...
2
votes
2answers
17 views
Error: Cannot find module 'jasmine-expect' [Protractor]
Im trying to run a protractor test that simply connects to my application.
When I run (git bash/terminal):
protractor conf.js
I receive the following error: "
Error: Cannot find module ...
-3
votes
0answers
24 views
Learning Spring framework [on hold]
I need advice in learning Java Spring framework. Before my interest of using Java in web development, I used Java commonly for desktop application based on JavaFX.
Also, I'm fimilar with HTML5, CSS ...
0
votes
2answers
29 views
AngularJS module is not loaded
I'm trying to use different AngularJS modules in different HTML-pages but only one is loaded (frankly, I think that just only one is loaded but the problem may be in something else). To put the logic ...
0
votes
0answers
6 views
ng-file-upload: Invalid files being added to 'valid' model when selecting multiple images
I'm trying to validate images based on their dimensions, i.e. images are only allowed if they are one of four specific sizes.
ngf-dimensions="($width === 669 && $height === 892) ||
($width ...
1
vote
0answers
22 views
http post return strange JSON
I was working on my first API/backoffice (so I'm really new with MAMP and PHP) and this is my problem :
I used $http with post method on my script (I'm using AngularJS) and I send an object as data. ...
0
votes
1answer
34 views
Is my angularjs application development in the correct way?
I am new to angular JS. Now I am creating an application using AngularJS + Codeigniter. I understand the basic concepts of AngularJS. I have done the basic operations like Add, View, Update, Delete ...