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 UI Bootstrap Datepicker dynamic date (variable)
I am using Angular UI Bootstrap and creating a form which contains two datepickers. First one is today's date or the date we can select, the 2nd one is the first one's day plus a week, 7 days.
I ...
0
votes
0answers
2 views
Angular Material md-chips with md-autocomplete: Event md-not-found not work with md-transform-chip
I'm working with Angular Material v1.0.7 and I have trouble with md-chips:
In md-chips, I use md-autocomplete ( ... ). Here is my situation:
- When user input vaue in md-autocomplete, if there are ...
0
votes
1answer
4 views
angular routing based on user action
I'm a beginner in angular and I am trying to build an questionnaire app.
What I was trying to do is angular routing based on user action.
Say for example, in first page user have a question with three ...
0
votes
1answer
25 views
AngularJS $routeProvider templates not showing up in ng-view
Here is my folder structure:
public
--js
----controllers
------aController.js
------bController.js
----app.js
----router.js
--styles
----a.css
----b.css
--html
----a.html
----b.html
--index.html
In ...
1
vote
1answer
12 views
Angular/Ionic ng-if
I'm having an issue with an Ionic app we are building.
On a particular screen, the app is going to list one or more names, using an ng-repeat directive in a div. The div will also feature a select ...
0
votes
0answers
9 views
angular directive does not show in some cases
appreciate for your attention to this question.
I am pretty newbie in angularjs , I have some question when I use angularjs directive. Here is my problem.
I have a directive like this :
...
0
votes
0answers
4 views
ng-forward bootstrap function not working on stock android browser
When I view my app on my stock Android browser all I see is a white screen. I've seen a few issues about the "white screen of death" in Ionic apps, but none of that seems to apply here. It's difficult ...
0
votes
2answers
21 views
How to use ng-init with an object?
I have a dropdown whose value is an object. The html code is as follows.
<div class="form-group">
<label>Goal<span class="red-ast">*</span></label><br />
...
0
votes
4answers
30 views
Angularjs return value to controller
angular.module('App').factory('API', ['someAPI', function(someAPI){
var service = {};
service.loadInfo= loadInfo;
return service;
function loadInfo(id) {
var list = [];
var items= ...
0
votes
0answers
11 views
How To Securely Send User Auth Token To AngularJS
we have a web app that used Django and AngularJS. Django part is responsible for user authentication, serving pages that contain Angular code and acting as a middleman between the Angular app and the ...
0
votes
2answers
35 views
AngularJS: How to display an element on another div when clicked
I have an array of letters and I want to log whatever letter is clicked.
HTML:
<div class="col-md-2 col-sm-10 col-lg-1 letters"
ng-repeat="choice in images[num].letters track by $index">
...
2
votes
0answers
12 views
Highcharts not displaying charts through angular controller
I started playing with highcharts for a project I am doing. Highcharts was displaying properly when I dumped a massive array of data into it, but now that I am trying to parse through groups of data ...
-1
votes
2answers
25 views
AngularJS and Go POST Request Method Not Allowed
Im currently working on a sample project and Im using Go and AngularJS I am new at this. I encountered a 405 Error Method Not Allowed after executing this codes.
sample.js
var app = ...
0
votes
1answer
17 views
Wait till success or error occur
I'm trying use $http.get() to retrieve the value and use that in my controller which needs to be processed further.
appFac.factory('CompletedJobs',function($http){
var result;
return{
getJobs : ...
0
votes
0answers
3 views
ionic image icon go background when side menu toggle
I'm making ionic app. and I add image icons left low part and right low part.
the problem is when I toggled menu at the same view(open, don't any action and close), a left low part icon is go to ...
1
vote
4answers
20 views
AngularJS handle stacked promisses
I have an array of arrays that I want to run a async. function on.
for(var a in As){
this.doSomething(a).then(function(result){
for(var b in Bs){
...
0
votes
1answer
23 views
Error in replacing current data in javascript
I need to replace current data that i got from user in this table. But, instead of replacing the current data, it provide me the new row of data.
$scope.users = [{username: "a", name:"b", ...
0
votes
0answers
5 views
I need to make a system diagramme using SVG and javascript
Hi can any one help me in creating a system flow diagramme using svg/d3.js and javscript ?
please below the attached diagramme and json click here
here is the Json structure :
{"Components": ...
0
votes
2answers
21 views
How can i setup Bootstrap, Angular.js and mySQL together
Im very new to this World of Angular and Html. Im using brackets, i did a small project which was setup by my friend and he is not available to help anymore. Im trying to find detailed process so i ...
1
vote
0answers
17 views
AngularJS email confirmation match not working?
here's the HTML
$scope.updateUser = {};
$scope.updateUser.details = {};
$scope.updateUser.email = '';
$scope.updateUser.confirm = '';
$scope.updateUser.details.open = ...
0
votes
0answers
11 views
Angular 2 - html from template will not render if file name is too long?
So I had a very long question about why a particular Angular 2 component would not render its template file. As I was testing different scenarios, I realized it all comes down to the length of the ...
0
votes
2answers
27 views
Difference between <div ui-view></div> and <ui-view></ui-view>?
I can't seem to find any major differences between the two other than being able to name the view when using it with a view. Is there a time when one is preferred over the other?
0
votes
0answers
19 views
Convert directive from Angular1 to Angular2
I am trying to migrate from angular1 to angular2 (on Javascript), how would I write this in Angular2? I am awfully confused
Thank you
module.directive('asiPath', function($compile) {
return ...
0
votes
0answers
4 views
IONIC not receiving Socket data from server
I am using ionic framework for my android app and MEANJS on my server. I am using Web Sockets to get realtime data. While the server side web application updates automatically every time a CRUD ...
0
votes
0answers
5 views
ng-form scope lost when trying to validate form by $dcope.form1.$valid
My app is multiple tab application. Each tab is inside ng-form.
<div ng-form="frm1">
<span>FName</span>
<input type="text" id="txtfname" name="txtfname" ...
-1
votes
0answers
31 views
Why am I getting an undefined value when I display a object outside a function but not inside the function? [duplicate]
I'm storing some data in $scope.checkedInUsers but when I tried to display it in the console outside the function I got an undefined value. But when I called console.logs inside the function I got the ...
0
votes
1answer
8 views
AngularJS table data not updating when uib-pagination is wrapped in another directive?
I generated my project using JHipster and one of my entities uses pagination (). Everything is working fine, however I want to include a page size option along with pagination. But I don't see any ...
0
votes
2answers
14 views
How to make 2 Angular Lists appear next to each other in a html table
I am having a problem where when i run this code which reads data from 2 files both containing 10 numbers. These are both stored seperatly in the mainlist but the only problem is when i try to output ...
0
votes
1answer
10 views
Control Angular JS element from a thirdparty raw javascript
This is the first time I'm working with a site built in Angular JS. I write thirdparty marketing javascript tags which merchants load on their site as the last element in the HTML. The JS tag simply ...
0
votes
1answer
12 views
html2js preprocessor stripping multiple prefixes
I have a file structure where the templates are located in different folders but the build task puts them all into a single folder. I wish to strip all the different prefixes from the files and ...
1
vote
1answer
12 views
Bower not finding a package in Angular on Rails app
I'm following Thinkster's tutorial about Angular on Rails(https://thinkster.io/angular-rails#jumping-in-with-angular).
In this tutorial, I install front-end dependencies following way:
bower install ...
0
votes
2answers
15 views
Angularjs remove items from scope that are in another scope
The following is a mock up of what I have using data from the angular site. The goal is to remove any items in scope2 (newdevices) that already exist in scope1 (devices). I have a working model but do ...
0
votes
2answers
18 views
Applying a filter with ng-model realtime Angular
I have a input tag like this
<input currency type="text" class="form-control amount" ng-model="loan.total">
what I want to do is I want to view this "total" value as separated 3 by 3(4000 ...
0
votes
0answers
14 views
Using a variable in firebaseArray.$save(index) method
vm.arrayEntrevista.$save(vm.indiceGuardado).then(function() {
console.log("Guardado");
}, function(error) {
console.log("Error:", error);
});
I get an error message whenever I want to use the ...
0
votes
0answers
3 views
Google Maps and Cordova Vibration
Anyone out there have any pointers for how to integrate Cordova Vibration onto an Ionic app when getting turn by turn directions using Google Maps JavaScript API? I understand that you are able to ...
2
votes
1answer
18 views
Scroll to element in flexbox container
I am trying to autoscroll to an element in a flexbox container.
<div class="nav">
<div class="items">
<div ng-repeat="i in items" scroll-on-click>
{{i}} click me to ...
0
votes
0answers
30 views
How do browsers handle “setInterval” and “Event Listener” differently?
So I was wondering. What is the difference between this code:
windowHeight = window.innerHeight;
windowWidth = window.innerWidth;
setInterval(function(){
if(window.innerHeight != windowHeight || ...
0
votes
1answer
7 views
Microsoft Edge Cache Api Requests
I am having some issues with my eCommerce site when using Microsoft edge. The main issue I am having is during an angular $http.get request.
Generally the application flow is whenever the user visits ...
-1
votes
0answers
11 views
Slide right menu with angularJS
I hope that you have good mood. I'm new in angularJS :), I try to make a slide right menu when I click on button with angularJS. I fond that I can use this libraries:
<script ...
0
votes
0answers
17 views
How to access deep child elements in angular directive?
How can I get the list class "access" in a directive link function? I found examples online that access child elements using "el" but they don't show how to get elements that are REALLY DEEP in the ...
1
vote
1answer
22 views
How to reload angular app from server, without using browser cache, after logout
I am working on an Angular app. On logout we delete some cookies, and then we want to reload the page, including all the JS scripts, from the server (not from the browser cache).
The server has some ...
0
votes
0answers
13 views
Link Sails's authenticated user to websocket's user
I am currently trying to create an sails+angular web-app.
I already have a user-authentication system working (based on this tutorial : https://github.com/balderdashy/activity-overlord-2-preview). I ...
0
votes
0answers
16 views
AngularJS hash causes redirect to fail
I have build an AngularJS application and want to use paymill.com to offer different payment methods. I am currently struggling with PayPal.
This api-call allows me to specify a redirect url where ...
1
vote
1answer
10 views
jQuery's .unload fires on load in AngularJS
I need to use jQuery's .unload() inside AngularJS:
My Controller
$(window).unload(someHandler());
var someHandler = function() {
console.log('handled!');
};
My View
<section ...
0
votes
0answers
17 views
TypeError: angular.element.cleanData is not a function
I'm getting the following error in my karma unit test when trying to use inject()
Example
✗ should wait for promise to resolve and have a result
Error: timeout of 2000ms exceeded. Ensure ...
0
votes
0answers
31 views
angular function is not recognized
I need to load 20 items of a table with 600 items every time user is near of bottom. I'm using onscroll in this way but it doesn't recognize the angular function, in this case loadMore():
...
0
votes
2answers
26 views
instantiate $scope in module with multiple controllers
How do I instantiate $scope for an angularjs module that has multiple controllers? Currently, I am getting the following error message:
Error: [$injector:modulerr] Failed to instantiate module ...
0
votes
0answers
10 views
Microsoft Edge browser and AngularJS binding update
I have a webb application using AngularJS and SignalR for updating the page in realtime from other users. The problem is that Microsoft Edge browser does not automatically update the view when the ...
-2
votes
1answer
32 views
NodeJS and front-end
I'm working on a project - where i would like to split the logic into micro-services like:
DB layer / service which run 24X7 and store some live data i db
API layer / service - exposing the data, ...
0
votes
2answers
24 views
Set different hyperlink for same <a> tag (Using AngularJs)
I have a very weird query. Searched a lot online but couldnot find a correct solution.
<ul class="dropdown-menu">
<li><a ng-model="data" href="Pre.html" ...