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
5 views
How to store Angular translation strings in an array
I use angular-translate to localise my app and display my string inside brackets {{"TEA_BREAK" | translate}} . Now, I want to store those strings {{"TEA_BREAK" | translate}} inside an array:
array = ...
0
votes
0answers
3 views
Connect-Flash in Single Page Application
I am trying to figure out the best way to implement connect-flash in my single page application. I was able to get passport and connect-flash to work together, but can't get it working in any other ...
-3
votes
1answer
10 views
AngularJs check weather Array containing an item or not
I have array of name:
$scope.myArray with some values.
Now I want to check an Item is present in array or not,
If it is not present then I want to push that item into array and If that item is already ...
0
votes
0answers
5 views
Dynamic design with Data Grid's width
I'm working on Grid and designing with bootstrap 3.
http://www.imgim.com/griddesign.png
I'm using html5,css and bootstrap with React.js.
I have a data grid and
-filter input
-pagination tool
...
0
votes
1answer
11 views
How to force all my pages in Spring to https protocol
I download the source code of um application and deployed in Heroku, although I can not run it.
Website with the source code: http://websystique.com/springmvc/spring-mvc-4-angularjs-example/
Error ...
0
votes
0answers
4 views
Based on screen size, Timed out waiting for Protractor to synchronize with the page after
In my conf file I am setting my browser window to be maximized in onPrepare{},
I am seeing an odd behavior, When I run the test on my 15inch Mac screen, I get:
Timed out waiting for Protractor to ...
0
votes
0answers
11 views
ng-model seemingly only binding one way on ion-radio button inside modal view
In my Ionic/Angular app, I have a scope variable which I instantiate like this:
$scope.org = 0;
I then have a modal dialog which I instantiate like this:
...
0
votes
0answers
8 views
Appending to an SVG with D3 from an Angular HTTP promise
I'm using D3 in an Angular directive to build a very simple chart with data queried from my database.
When the directive is constructed, I call
private initializePlot() {
this.svg = ...
0
votes
1answer
31 views
HTML5 session storage or local storage only returning values on home page and values not get persist on the other page
I am trying to handle session object across page using HTML5 local storage and both Local Storage and Session Storage values are not persist on the other than home page. What will be the issue?
...
-1
votes
0answers
8 views
Custom GroupBy directive for ul li dropdown
I have created custom ul li dropdown and I want to implement grouping logic for my dropdown. Is it possible to create groupBy directive(as an attribute) by using AngularJs.
This is my dropdown ...
0
votes
0answers
15 views
Yelp API using Angular: Not getting the data from api on first load of the page. Data only shows on refresh of the page
I am building an angular application, where I am using both the Yelp search as well as business api. While, I am able to get data using search API and display it. When I am further using the ...
0
votes
1answer
12 views
0
votes
0answers
16 views
Angular Directive Best Practices - Is not using directive in Markup a good idea?
I've seen some examples where a div tag has a controller defined, but the directive is not:
<div ng-app="contestantApp">
<h1>Contestants</h1>
<section ...
0
votes
0answers
32 views
fill json data in html dynamically
i want to fill a table from a json file using angular js.
json file may vary from time to time (dynamic data).
requirement is : fill the table in html by parsing json file.
Table is in view.html file ...
0
votes
2answers
38 views
how to get the height one div and assign it to other div, after html finishes rendering
<div class="col-xs-10" id="leftDoc" "> ... </div>
<uib-tabset type="tabs">
<uib-tab heading="Event 1 Information"> ....
<uib-tab heading="Event 2 ...
0
votes
1answer
20 views
Api returns 404, but record is inserted in database
I don't get it what the problem is (my code is working and i don't know why).
My api resource is working (since data is inserted in database), but i'm still getting 404 method not found.
This is my ...
0
votes
1answer
24 views
Proper way to send data from Node to Angular for use in ng-repeat.
Let me preface by saying I'm fairly new to Node and Angular.
I have two models, one for items, and another for users. My items model has an "owner" attribute which is the id of the user which ...
-1
votes
1answer
28 views
How to control scrollbar in angular?
Basically I'm working in a chat web application.
It should work pretty similar to the gchat. I mean, if the srollbar is at the middle of the div, it should show an alert saying you have a new ...
1
vote
0answers
16 views
Cross origin issue with ajax, angular and Zuul
I have zuul server implemented which does the routing to all my microservices. I have a seperate UI project which is in angular. I am trying to make an AJAX call from the UI app to a specific ...
0
votes
1answer
10 views
Angular filter contents of Directive
I want to be able to filter the contents of my custom custom element's ng-repeat by the "cat": property in my data JSON. I have basic experience with Angular directives but as you can tell my ...
0
votes
1answer
23 views
How to get URL parameters in Angular JS, Node JS, Express
In angular I'm using the http service (get). I need to get the CURRENT url parameters to form the url of the http get. What is the best way to do this?
For example: the page I'm currently on is ...
0
votes
0answers
6 views
Fade in Fade out Effect AngularJS Directive For ngStyle
I am creating a simple background-image slideshow directive using angular js. Everything works fine , however I want an elegant fadeIn fadeOut effect when the background image changes. Any idea how I ...
0
votes
0answers
7 views
Can I send and execute mongoose virtuals with such construction on a client side?
I have really complicated logic for getters and setters, which works fine on the server side. I want to be able use it on the client, but instead of my functions I'm getting empty object.
If it is ...
0
votes
0answers
7 views
not able to understand angular directives ng-not-empty-add, ng-valid-parse-add, ng-not-empty-remove
following angular directives are added at the time of entering values in the field. Strange thing is, it is not allowing to enter anything in the field and upon inspecting the element this is what it ...
0
votes
0answers
5 views
UI-router state change, trigger youtube video play on next state
I want to be able to click a play button on the home page, which will trigger a state change via ui-sref to the video page. After the state change has ended and on the video page, the single youtube ...
0
votes
0answers
19 views
How do I return the response from an asynchronous call inside an angularjs service?
I have already read the answers to the question How do I return the response from an asynchronous call? But I'm not sure I understood it well and I think that my problem is a bit different. I change ...
0
votes
1answer
8 views
find the element in the source html code for invalid login case in protractor
I'm trying to write a simple "failed login" test in protractor. The thing is, i can't point (don't know how), to the specific string in the source code.
I tried all kinds of things like: ...
0
votes
0answers
8 views
Create hotkey shortcut based on directive attribute value
Im trying to develop a directive that will work with Angular Hotkeys library.
So for example:
in DOM i will have hot-shc="a" which means that this element will be clicked or focused (depending on ...
2
votes
3answers
21 views
Unknown provider: $q in an AngularJS application
Can anyone tell me what I might be doing wrong. I have this code:
var app = angular.module('app',
[
'angular-cache',
'angular-loading-bar',
'ngAnimate',
'ngCookies',
...
-2
votes
1answer
16 views
How to Update Value with in AngularJS $scope.$watchCollection
I need to update the Value within $scope.$watchCollection
Sample AngularJS Source Code:
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope, $http) {
...
0
votes
1answer
23 views
Unable to run my Angular 2 application when using Event Emitters
I've run into an issue where my application will no longer load after adding a service that utilizes Event Emitters. The error I get is as follows:
"SyntaxError: expected expression, got '<'
...
0
votes
0answers
18 views
AngularJs sending form data to email in SPA
I am trying to build a contact form for SPA. I am using AngularJS to send data to email without page refresh. I am jcs-autoValidate to validate form field. I am using Bootstrap form for front-end and ...
-3
votes
1answer
11 views
How to start development of an android application in android studio with the nodejs, angularjs and mongodb ? are there any tutorials?
How to start development of an android application in android studio with the nodejs, angularjs and mongodb ? are there any tutorials or reference materials available so that I can have a basic idea ...
0
votes
0answers
10 views
Popup doesn't work with ngRoute
In a web application, after the login, the user see a page in which there are a button for open a css popup. It works, but when I put the project in phonegap and I use ngRoute the popup doesn't work, ...
0
votes
0answers
18 views
Two way data binding not working when I use ng-repeat
I have a problem with two way data binding when I use ng-repeat. I am not able to update the parent scope value into children directive by using the two way data binding.
...
1
vote
1answer
22 views
Angular - Passing data into a class
I'm writing my first Angular app - wasn't sure how best to describe this so excuse me if its already been answered.
I'm using ng-repeat to display some JSON data:
<ul class="no-bullet" ...
0
votes
0answers
6 views
how to enable tabs stretch only in desktop and not on mobile in angular material?
The options provided for md-stretch-tabs are below
"auto" stretched only on mobile
"always" stretched on both mobile and desktop
never
1
vote
1answer
39 views
Why Javascript removed leading zeros from string?
I'm using ui-router to get the parameter value from url using $stateParam. One of the parameters is id number that may or may not begin with 00. For example, 0034323343. In this entire application, ...
0
votes
1answer
7 views
Keeping one column in a table using ng-repeat the same
I have a table that is pulling data from a json file and populating td with ng-repeat. However, I want my first column (Line #) to stay the same. For example just 1,2,3,4 to represent which phone line ...
0
votes
1answer
25 views
AngularJS, objects attached to $scope won't bind to html element
I have 3 files: EventDetails.html, app.js, and EventController.js.
Here is the body of the html
<html ng-app="eventsApp">
<head>...</head>
<body>
<div ...
0
votes
0answers
16 views
Angular $http read String?
The back end guy wants to send me a string, which will be returned by $http.post. If he sends me something like "success", I will get error like "parsing Json failed". I want him to wrap the string ...
0
votes
0answers
16 views
Filter data using checkboxes in angulars
I have looked around at other solutions to my problem, they don't seem to work well with the code I have.
I wanted to filter 3 sections from my data based on the initial selected checkbox, if they ...
0
votes
1answer
8 views
Angular masonry directive hides inner elements, error: ReferenceError: Masonry is not defined
Trying to use the Angular Masonry Directive by klederson on a project, but having trouble getting it to work. The space is taken up in the body tag for the elements but they aren't visible, and the ...
0
votes
0answers
7 views
blueimp jQuery-File-Upload AngularJS maxNumberOfFiles validation
I'm using the excellent AngularJS implementation of the jQuery-File-Upload plugin by blueimp (https://github.com/blueimp/jQuery-File-Upload).
I have set the options.maxNumberOfFiles parameter in my ...
0
votes
0answers
5 views
Disabling manual URL/location entry for AngularJS routes
I have a list of routes that map to the flow of my project using $routeProvider:
'/step1', '/step2', '/step3'
where '/step2' is accessed by pressing a "NEXT" button on '/step1' etc.
My issue is ...
3
votes
3answers
28 views
How to override / compliment ng-class in a directive with a template with replace: true
Without removing replace: true, how can ng-class be used on the directive below without causing an error / conflict with the template ng-class?
Currently, this throws the following Angular error:
...
0
votes
0answers
9 views
Trouble Using $SetValidity on Ng-Form
I think I am making some obvious mistake: PLUNK
The html:
<ng-form id="myForm" name="myForm" >
<div class="form-group" >
<input id="myFormField" name="myFormField" required ...
0
votes
0answers
11 views
Full Height AngularJS md-sidebar
I'm struggling trying to set a full height a md-sidebar which is within a container.
Here is the HTML:
<md-content flex layout-padding class="remove-padding-around" ...
1
vote
0answers
8 views
Add conditional directives before transcluded element is compiled
Let's say I want to add conditional my-directive to a transcluded element. How would I do it, so I wouldn't need to compile the element twice?
Here is sample with compiling twice:
link: ...
0
votes
0answers
7 views
Closing another accordion in the other custom directive (AngularJS)
I am using two separate accordion directives in my codes. In each accordion, when I click on any items the rest get closed.
Now, the customer is asking to an update, which if the user click on any ...