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.
2
votes
1answer
9 views
filter in specific multiple expressions angular js
I want to search in column name or number only, currently i'm only searching in column name.
<input type="text" ng-model="test.name" placeholder="start typing..">
my expressions,
<tr ...
0
votes
0answers
8 views
Rendering a nested object that's nested within an object Angular
I have a data set that looks like this
data =[{
Case:
"case": 'a' {
AIO: 'aio_id': 1,
'custnum': 1 {
customer: 'custnum': 1,
'firstname': 'johndoe'
}
...
1
vote
0answers
5 views
Update an angular treeview directive when a new object is added to the collection
I have a treeview directive that I am trying to update when I add objects to the collection. I can update the object and insert the new objects but the treeview directive is never called once the ...
0
votes
0answers
14 views
findOne() doesn't work - is something wrong with my syntax?
Db creation:
var mongojs = require('mongojs');
var db = mongojs('rodrigo-contatos', ['rodrigo-contatos']);
i'm trying to do a search in database with this code, using findOne from mongojs, that is ...
0
votes
2answers
11 views
Sync up JSON objects on the same page with various AngularJS controllers
One page is divided to several sections and each section has its own controller. The JSON objects on those sections are related. After some actions performed in one section, the state of a JSON object ...
0
votes
0answers
18 views
Angular nested GETs
I have an interesting situation where I am getting a list of ids from one GET request and then I want to grab the first one and do another GET request to get an image url for that object. ...
0
votes
0answers
8 views
Setting Value for Dynamic ngModel inside ngRepeat
How do I set the value of a dynamically created ng-model inside of ng-repeat?
I tried vm.awayTeamPlayersPlayed['Mark'] = true; but that doesn't work.
html file
<md-list-item ...
0
votes
1answer
27 views
Common html file should be included in index.html
I have an angularjs web app with multiple views and controllers.I have a html file named topnav.html which is included in all the views except for 3.Instead of including it in all views , i want to ...
4
votes
1answer
23 views
template function not interpolating component bindings
I'm using 1.5 components, I don't think that matters though.
I'm trying to do a single = binding between a parent controller and a child directive isolate scope. The child isolate scope is ...
0
votes
1answer
3 views
Angular UI Tree - Allow only drag & drop into second level (children nodes)
I am currently using Angular UI Tree.
My object:
[
{
"id": 1,
"title": "class1",
"students": [
{
"id": 11,
...
0
votes
0answers
9 views
How to send csv from angular to flask and load into pandas?
I am trying to post a csv file from my client to my server and load the file into pandas. I get the error IOError: Expected file path name or file-like object, got type
I am not sure if it is ...
0
votes
0answers
6 views
How to make a Gridstack item autofit its respective Gridstack item content?
Consider this example:
<div class="grid-stack-item" data-gs-min-width="7" data-gs-min-height="20">
<div class="grid-stack-item-content">
<div class="panel ...
0
votes
0answers
5 views
Custom class or attribute in E2E testing
Having pretty complex angular application with many pages (states) and conditional sections that creates a lot of test scenarios I need to perform e2e tests. I'm tired of nested selectors like ...
0
votes
1answer
16 views
Ionic, hide and show element from side menu
i am new to Ionic. I need help to hidde elements from side menu. For example my HTML code:
<ion-side-menus enable-menu-with-back-views="false">
<ion-side-menu-content>
...
1
vote
0answers
9 views
Getting Highcharts tooltip to return an angular directive?
We are trying to create some complex tooltips for our Highcharts graph, that will be showing some dynamic data thats in the app but not displayed by the graph, so I figured the best bet was to create ...
1
vote
1answer
9 views
Angular Restangular Local Storage Interceptor Issue
I am using a RestangularProvider to set an $http interceptor to inject an authentication header into all restangular requests. The problem is that you cannot inject services into app.config(), so I ...
1
vote
3answers
24 views
Unexpected Response comparing Date Strings in Angular Controller
I am trying to compare two date strings in my Angular Controller but I am getting unusual response. I convert today's date to a string ("2/5/2016") and then try to compare it to string dates that I ...
0
votes
2answers
17 views
Angularjs Ionic JSON object not returning data
I am trying to get data back from a web service, I have to approaches the first is calling the data from the controller which works here is the code
$http({
method: 'POST',
url: ...
0
votes
1answer
8 views
API query in AngularJS returns nothing, Laravel 5.1 RESTful API, Angular JS (1.5 / 1.4.9) Front End
Wow, I'm at a loss and have been fitting this for days. I could really use some help ...
PROBLEM :
When I query my api in Angular Javascript I don't get any data in response. I know the API is ...
0
votes
0answers
20 views
Angular Filter via checkboxes
I am trying to configure filtering via multiple checkboxes but I am struggling to get it to work. The idea is, when you click a checkbox it filters the results and providers will hide / show ...
0
votes
0answers
19 views
Uncaught Error: [$injector:modulerr] Failed to instantiate module app
I am trying to run angular app.
Original error message is :
Unknown provider : currentV <- V
After that I tried to add ng-strict-di and started getting below error message:
I am getting below ...
2
votes
2answers
33 views
$watch a variable for change angularjs
I'm new to complex angular directives. I have a variable in the rootScope called $root.page. I have set up a watch like so:
$scope.$watch(
"$root.page",
function handleChange( newValue, oldValue ...
0
votes
0answers
5 views
AngularJS Treeview with pdf hyperlink
I have used the below example to display the angular tree in my apps .I would like to know how to display the pdf link for the child nodes.For e.g Almond,Apricot.When user clicks Almond or Apricot in ...
0
votes
0answers
13 views
IE 'x' icon is not clearing the counter?
I have created Angular directive that counts character for inputs and text area, its working as expected, but only Problem that was raised by user is when they clear input using IE 'x' icon it does ...
2
votes
1answer
20 views
Insert embedded document in mongodb via angularjs
I am trying to insert embedded document in MongoDB through AngularJS.
Parent document is existing. This is schema of embedded document
offers: [{
date: Date,
offer: {
id: ...
1
vote
1answer
14 views
Disabling back ground of the popup using angularjs without using bootstrap
I want to have a popup and the background screen disabled using only divs, ng-class, ng-style and css3 styles. I DO NOT WANT TO USE BOOTSTRAP MODAL. I have been struggling to get this work. I am ...
0
votes
1answer
8 views
$state.go after a timeout or in $ionicPlatform.ready makes a boolean seem truthy and falsy at the same time
We want to have a dynamic startup state in the our application depending on certain factors (scroll down if you're interested in the context).
We have the following code to achieve it: we have a fake ...
0
votes
1answer
8 views
Service not defining when injecting it for Karma testing - AngularJS
I've seen a few of these questions on the internet, but none of the answers seem to solve my problem. I have a service that works perfectly in my served app, but when I test it in Karma it is not ...
0
votes
0answers
12 views
In Firefox Angular 2 is very slow when changing routes and loading the views, even if its a simple view
In Firefox Angular 2 is very slow when changing routes and loading the views, even if its a simple view
Has anyone experienced this?
0
votes
1answer
25 views
How to $watch changes in array item but not the array itself
For example I have
$scope.array = [{ foo: 'bar'}, { foo: 'bar2'}]
I want to watch this array such that
$scope.array.pop(); //$watch is not called
$scope.array[0].foo = 'newbar'; //$watch is called
...
-4
votes
0answers
15 views
I need an simple example code on angularjs, where controller inside two directives access and modifyes the value from a factory
Two custom directives having controller,which can access the variable present in a factory and change its value. i am new to angular so i need it in a very simple example.
0
votes
2answers
20 views
Asynchronously function returns undefined with $q deferred
I am calling my data from my api through a factory that looks like this:
app.factory('Service', ['$http', function ($http) {
var urlBase = 'http://localhost:50476/api';
var Service = {};
...
1
vote
0answers
12 views
AngularJS: None scope functions in a directive seem not to be isolated
I have a problem with multiple instances of the same directive on the same page like in the Jsfiddle example. Each directive has his own sort button and draws a small bar chart with d3. And this ...
0
votes
2answers
33 views
Form validity using Angular ng-repeat
I have an Angular form that is parsing some JSON data.
I'm rendering using ng-repeat. However, I'm having an issue in that the form never becomes valid when a radio button in each group is selected.
...
0
votes
1answer
22 views
what and how to do unit test for angular factories
Angular factory is great!! While writing unit test, it is kind of confusing, should we write unit test or not.
I have following factory:
(function(myApp) {
myApp.factory('MyFirstFactory', ...
0
votes
0answers
14 views
How to create grid list of infinitely scrollable data?
I am working on building a web page that will display a grid list of infinitely scrollable products. I have implemented the following markup to achieve this :
<md-grid-list md-cols-gt-md="3" ...
0
votes
0answers
9 views
How does one properly use state parameters to scope variables when clicking the back button using the ui router?
I create tabs dynamically, and each tab gets its own state with URL and with certain state parameters. The state parameter are then used to scope certain variables in the tabs. I use the ui router. ...
0
votes
1answer
13 views
How to determine parameter list of callback functions
In D3.js, some time I will pass a callback function as argument, e.g. In delay() below:
d3.select('body').selectAll('div')
.data(distances)
.enter()
.append('div')
.html('.')
...
0
votes
1answer
10 views
Can ngResource pass nested object into GET query?
I am using ngResource to communicate with my Web API.
I want to send a search request to my WebAPI controller but the object is not flat:
var searchRequest = {
query: "hotel",
page: 1,
...
0
votes
0answers
26 views
Angularjs child cannot update parent variable
I have two controllers:
app.controller('mainController',['$scope','$templateCache','$route','$location',function($scope, $templateCache,$route,$location) {
$scope.clear = function(){
...
0
votes
1answer
26 views
Create An Array Dynamically, Then Loop Through Another Array To Compare If Data Exist
What I am trying to achieve is to create an array dynamically and then use that array to compare with another array if data exist.
What is happening right now is that the code to compare the arrays ...
0
votes
0answers
13 views
Is there a way to include LDAP authentication in AngularJS code?
So far I only got LDAP authentication to work under Java file.
How can I get it to work under AngularJS?
Or how can I call the java method than authenticate the users from HTML login.html file。
I ...
0
votes
2answers
12 views
angularjs POST 405 method not allowed
I have an angularjs project that contains an oauth to github.
I use the satellizer plugin to deal with the oauth protocol.
Every time I try to connect I get this error:
Here is my route config ...
0
votes
0answers
6 views
ng-blur event does not work on ui-grid cell template
Here is the sample code. I have a cell template (text box) within ui-grid. I would like to use ng-blur event when the value of text box changes but this event does not fire.
{
name: "Amount", ...
3
votes
2answers
24 views
Accessibility of $index in ng-show
I try displaying a select when the previous select was checked.
<div ng-repeat="item in collection">
<div ng-show="$index === 0 || $parent.list[$index].nom">
<select ...
0
votes
0answers
14 views
Using $formatter and $parser with min/max validation on number input
I have a number input that is dynamically generated and has min and max values. This input, along with others of different types, is processed by a $parser when the value is changed so that it is ...
0
votes
1answer
11 views
How to use ngResource in Angular-Seed bootstrap
I am trying to learn hot to invoke a RESTful service that I've implemented in JEE7. I am using the bootstrap template Angular-Seed and the file structure in the tutorial I am using looks a bit ...
-3
votes
1answer
24 views
Typical CSS Lib used with Angular js?
hi all things done with jquery can be done with angularjs and also i heard it can be done more easily with angular. but have the following questions?
for ASP MVC provides unobstrusive validations of ...
0
votes
1answer
20 views
ASP.NET Create directory with current user permissions
I want to create a directory on a network path from a WCF web service. This web service is hosted under a site that uses Windows authentication. However, when I try to create the folder with ...
1
vote
1answer
12 views
Get duration of local video selected using angular
Is it possible to validate the duration of a local video that a user has selected using a file input in angular?
I have the following html which binds the selected video to my model.
<input ...