Tagged Questions
AngularJS (a.k.a. AngularJS 1) 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 applications are also frequently known as ...
0
votes
0answers
2 views
How to load/play AngularJS audio Blob on WavesurferJS?
I am using WavesurferJS together with .NET API and AngularJS to play audio files from the database. My only problem is getting the blob loaded into wavesurfer's BlobUrl().
Here's what I've done so ...
0
votes
1answer
20 views
ng-show is not working for one of the similar input fields
I have a multistep form. I have ng-show which depends whether or not the input[type="text"] is empty.
Now, it works for one section of the form, but doesn't work for another section of the form.
<...
0
votes
1answer
9 views
Meteor Server-side variable persist between methods
I am building a simple Meteor-Angular 1 application and I am having a trouble to make my variable 'var conn' persist between methods in server.
Meteor code:
import {Meteor} from 'meteor/meteor';
...
0
votes
1answer
20 views
how to add a css class if validation is not done correctly in angularjs
i want my textbox border color red on button click if input is not valid by adding css class using js.
also at place of alert i want a message beside of textbox which will show after condition failed ...
0
votes
2answers
16 views
client - server architecture structure (with node js) - where to put the index.html file?
I have built a server client app (nodejs - on the server, angular - on the client).
I used to have all my code in one project (one folder) but then I figured it makes more sense for me to divide it, ...
0
votes
1answer
15 views
How to detect up and down clicks on html input[number]?
I have an html <input type="number"> box that has some custom validation logic. A valid value is any integer x where x < -100 OR x >= 100.
My goal is to implement this behavior:
when ...
0
votes
0answers
12 views
Python Selenium on AngularJs site
I am trying to automate reading my phone bill from the carrier website. www.fido.ca
However, the site is built with angularjs and I can't find the element using python and selenium webdriver. Please ...
0
votes
0answers
5 views
custom-directive like md-virtual-repeat to repeat list
<div md-virtual-repeat="item in ctrl.dynamicItems" md-on-demand class="repeated-item" flex>
{{item}}
</div>
Can we create custom directive like above which'll be just like ng-repeat? I ...
0
votes
0answers
7 views
Angular app displays black screen after splash screen in iOS
I have built an Angular app for Android and iOS. It also uses jQuery and jStorage. It's a Cordova app built using Visual Studio 14.
I have added the statusbar and splashscreen plugins to config.xml. ...
1
vote
0answers
13 views
how to perform three stage filtering of $scope in angularJS?
I would like to perform a 3 stage filter on my $scope, for example:
So firstly user would choose a Course code which would narrow the results down, then
the next select box (Occurrence) would ...
0
votes
4answers
35 views
How to verify that a list is empty in angularjs
My question is clear i guess, i have the bellow code in my controller
vf.filtroses = [];
FiltrosService.currentuser().success(function(data, status) {
vf.filtroses = data;
});
i ...
0
votes
1answer
26 views
AngularJS 1.5 two components in one
I have two components very similar, but with diff data. I want to make just one, but because I don't know components very well I have no ideea how.
Please someone give me an idea.
1st
<validate-...
0
votes
0answers
27 views
Getting error with <video> in AngularJS?
I have written the following code:
<div class="item item-input video-preview-container" ng-if="thumbnail.length > 0">
<video poster="{{thumbnail}}" ng-src="{{clipSrc}}" ...
0
votes
3answers
38 views
Angular ng-show not working to display an image after processing
$scope.getGraph = function(hash) {
if ($scope.clickedFile.hash == hash) return;
$scope.graph = "";
$scope.pictureLoaded = false;
$scope.loadingPic = true;
if (...
0
votes
0answers
12 views
Minimize repaint angular
I'm a beginner with Angular. I'm building a DataGrid, which has a lot of rows and columns - and of course everything's searchable. Rows can be hidden (with ng-if, which is the very problem here).
...
0
votes
0answers
22 views
Render dynamic HTML with Express and Angular from NodeJS
First here's my code:
[nodejs] main.js
app.get('/', function (req, res) {
res.json({name: "value"});
}
index.html
<body ng-controller="mainController">
<div class="container">
...
0
votes
1answer
24 views
Angularjs issue with directive unchecking all checkboxes
Hello and thank you for looking at my issue.
I am creating a directive that simply list parents and their children. Each parent have a checkbox available to allow user to print the parents indeed ...
0
votes
0answers
15 views
Add a table type to a JSON editor
I want to understand the code of this JSON editor and modify it.
In directives.js, there is a piece of code that tries to construct templates:
var switchTemplate =
'<span ng-switch on="...
0
votes
1answer
24 views
Move element up against window scroll in a directive then apply fixed position
I'm using an angular directive and binding the scroll on the window element. On scroll, I want to move the element against the direction of the scroll up. Then, when boundingRect reaches 50, I want ...
0
votes
1answer
13 views
Google chrome force reload for angular ui-router
i use Ctrl+shift+r to force reload in google chrome when i change my angular views html, but with angular ui-view tag, my partials still with old cache why?
0
votes
0answers
18 views
how to read images from a folder with image name and path?
i need read all images from a folder and, inside folder i have another folder that will also i need to read and storing
when i click a button open a dialog box for selecting a folder that time i need ...
1
vote
1answer
31 views
Why does angular.bind() exists while core javascript has the same functionality?
In the angular documentation it says that you can take an object and bind it to a function with optional arguments like this:
angular.bind(self, fn, args);
If I understood correctly "self" becomes "...
0
votes
2answers
20 views
need to set inputs disable when a value is selected from select input
I need to set these three inputs disable
<input type="text" class="col-md-6" ng-model="a.one" name=""/>
<input type="number" class="col-md-6" ng-model="a.two" name="" ng-disabled="cm" ...
-7
votes
0answers
26 views
What are the main differences between jQuery and AngularJS? For what purpose is AngularJS introduced?
I want to know in detail about the differences.
Please help me out.
1
vote
0answers
26 views
Variables not updated nor displayed
I use leaflet-routing-machine and I would like to extract the total distance and the total time between points. But the time and the distance aren't displayed, besides the time and distance aren't ...
0
votes
0answers
23 views
Local Storage Data is not getting into header file in Angularjs
I am working with Mean Stack and using AngularJs and NodeJs. I used
Local Storage data and getting data in main content it is working fine but this
data is not getting into the header I am using ...
0
votes
1answer
15 views
Angular 1.5 sort in <select ng-options>
I have seen similar posts on stack overflow but I have tried them all and can't seem to get it working.
I want to sort my angular dropdown list alphabetically but for some reason it doesn't ...
-4
votes
0answers
15 views
how can i add zoom in and zoom out button in graph ,i am drawing graph using function-plot js powered by d3
/*This is code for drawing graph*/
functionPlot({
yAxis: {
domain: [-4.28571429, 4.428571429]
},
xAxis: {
domain: [-6, 6]
},
target: '#demo'
})
From the above ...
3
votes
1answer
32 views
How to display infinity symbol in AngularJS
I want to conditionally display a value or an infinity symbol in my Web Page.
I wanted to do something like this ..
<td class="rs-table-text" ng-if="batch.est_completion_time ">{{batch....
1
vote
1answer
32 views
How to evaluate javascript predefined function in angular expressions
I want to evaluate some js predefined function in angular expression. For example new Date(). But, not able to do that. If it is possible, please explain how to do that.
For example:
<input type="...
0
votes
1answer
11 views
md-slider not updating when its model value is updated from controller
My HTML code is following which contains md-slider
<body ng-app="ABC">
<div class="ctrl" ng-controller="mainCtrl">
<md-slider ng-model="threshold" md-discrete min="1" max="...
0
votes
0answers
10 views
Bitbucket Pipelines - Push a folder from bitbucket repo to public server
I have pipelines enabled in my bitbucket repository and i need to run angular 2 build and deploy the dist folder (which gets created after the build command is executed) in my server after every build....
0
votes
0answers
18 views
How to apply two array based dynamic filters on a array in AngularJS
I'm working to filter records on clicking checkboxes from model in ionic app.
I've a structure like this for array.
I've JSON like this
I want to filter records on this basis of "Grades" and "...
1
vote
3answers
72 views
Align two vertical HTML tables
I have two tables vertically stacked on top of each other . There is margin-bottom in place that separates the two .
And currently the code looks like :
<script src="https://ajax.googleapis....
0
votes
5answers
24 views
Current year (by default) for the selector in view (AngularJS)
I'm new to the AngularJS. Here is my $scope of years for the selector in html:
//get it from the backend
$scope.years = ['2014', '2015', '2016', '2017', '2018'];
here is my html where I use this $...
2
votes
1answer
21 views
How to retrieve value for ng-bind locator in protractor?
The code line is:
class="ng-binding ng-scope" ng-bind="item.name">Soap
Its a drop down and I want to select the value 'soap'.
0
votes
2answers
25 views
Linking function from controller scope in directive scope
I've wrote a directive that should emulate the AngularJS-DataTable.
In this case I need to execute some function on the last <td> since they're buttons. I don't want to pass the functions to the ...
0
votes
1answer
12 views
Change Content-Type for ng file upload
I am trying to upload files with ng-file-upload. I have this working for the most part, but there is a bug in the API that's being called which means that .xlsx files do no upload properly. Other file ...
0
votes
2answers
40 views
Angular 2 select <li> and get the text
I'm doing an angular2 project and I am struggling with this...
I'm trying to get the text of an li of game lobbies when I click on it.
There is an image to give you an idea of what I have:
These are ...
0
votes
3answers
27 views
How do I use services in Angular to store variables?
How do I use services to store variables so that I can access it in previous controller on pressing back button?
For example:
.controller('myCtrl', function($scope, myservice) {
console.log(...
0
votes
1answer
14 views
Error: ng:areq Bad Argument AngularJS consuming local api
I'm developing in angular and I came across this error.
Error: [ng:areq]
http://errors.angularjs.org/1.5.6/ng/areq?p0=Person&p1=not%20a%20function%2C%20got%20undefined
at angular.js:38
...
0
votes
0answers
16 views
Error: $compile:tplrt Invalid Template Root
angular.js:14195 Error: [$compile:tplrt] http://errors.angularjs.org/1.5.10/$compile/tplrt?p0=uibTypeaheadPopup&p1=customPopupTemplate.html
<script type="text/ng-template" id="...
0
votes
0answers
16 views
Angular JS and Laravel (Single Page Application with Localization on URL)
Is it possible in angular js to create an url with localization while doing a single page app.
I'm using angularjs, angular-translate and angular-ui-router for front-end and laravel for backend
e.g. ...
0
votes
0answers
31 views
angular.js:13550 TypeError: Cannot read property 'then' of undefined
I am getting this console error for the following controller.
angular.js:13550 TypeError: Cannot read property 'then' of undefined
controller: [ '$scope', function( $scope ) {
$scope.flag = ...
0
votes
0answers
14 views
Mean stack grunt showing some error 'function name()' was used before it was defined
Running "jshint:all" (jshint) task
modules/codes/client/config/codes.client.config.js
6 | function menuConfig(menuService) {
^ 'menuConfig' was used before ...
-1
votes
2answers
31 views
Trying to import data from JSON file, and displaying in HTML
Here's the script I'm using :
(function() {
var app = angular.module("myQuiz", []);
app.controller('QuizController', ['$scope', '$http', '$sce', function($scope, $http, $sce){
$...
1
vote
1answer
30 views
count the number of elements in the JSON array using angularJS
This is my json data
$scope.players = [
{name: 'Bruce Wayne', shirt: 'XXL', pants: '42', shoes: '12'},
{name: 'Wayne Gretzky', shirt: 'XL', pants: '38', shoes: '10'},
{name: '...
1
vote
1answer
16 views
Set start page in ionic app
When I create tabs or sidemenu ionic app I can see in file app.js have
$stateProvider
// setup an abstract state for the tabs directive
.state('tab', {
url: '/tab',
abstract: ...
0
votes
0answers
11 views
iframe url not append in model dialog angularjs
I'm trying process the data in ajax. after the successfully process the ajax im getting url in response. I want to append the URL (ajax response ) in model dialog. the model dialog is displaying from ...
0
votes
5answers
40 views
angular js - copy object without their reference being copied
I need to make a copy of an array in javascript such that the addresses of both arrays should be different. how can it be done..
I have tried
$scope.users = data.users;
$scope.usersTemp = [];
$...