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
3 views
Angular smart-table set default sort order based on scope variable
Here is a plunker showing what I am trying to do:
http://plnkr.co/edit/mYFNBC6Z2XdpFD28XLdq?p=preview
I am defining a default sort and want to be able to set it based on a scope variable, eg:
...
0
votes
0answers
18 views
Angularjs sorts data from Ajax call
I am making an API call and the data is being sorted when I don't want it to be. The API looks like this:
{"AM ...
0
votes
0answers
7 views
Bootstrap Star Rating works on internal loading but not on external loading
I have a simple angular application that uses bootstrap rating. The html part:
<input id="input2" class="rating" type="number" value="4.5" max=5 readonly=true>
The code is in the partial ...
0
votes
1answer
15 views
I can not access in to a server with angularJs ($ http)
through AngularJs'm trying to access a server to make me return a JSON in thi way
modulo.controller('listaController', function($scope, $http) {
...
-1
votes
0answers
17 views
not able to use service in controller AngularJS
I've this routeProvider.
sampleApp.config(['$routeProvider',
function($routeProvider) {
$routeProvider.
when('/Login', {
templateUrl: 'templates/ShowLogin.html',
...
-1
votes
1answer
10 views
Port Angular JS client side application to Android
Context:
On our project Bahmni (Open Source EMR for low resource non-profit health care facilities) we have an Angular JS front end. Bahmni till now has only been installed for use over intra-net. Now ...
0
votes
0answers
5 views
append urls to a new state change in the $stateChangeStart handler
I cant seem to append urls to a new state change in the $stateChangeStart handler.
any ideas?
0
votes
2answers
23 views
How to show template in Angular JS?
I need load template html in page by click. I tried to do:
Angular JS:
$scope.selectDialog = function (id, event){
$scope.template = '/template/chat/active_dialog.html';
};
HTML:
<div ...
1
vote
1answer
21 views
Angular form submitting twice
so I am making a user registration form with angular js using ng-submit and ng-model. The problem is when the user submits the form its triggers twice.
I looked around for common causes and none of ...
1
vote
1answer
30 views
Passing in variables to factory?
My factory is a wrapped $resource object and it needs to have a custom header (for http authentication). I can't figure out how to pass in data to put in the header
...
0
votes
0answers
7 views
scripts/web-server.js is missing in AngularJs Seed
I thought working Angular from Angular-Seed project since it contains good app structure and testing capability.
I have taken angular-seed master from the website ...
0
votes
2answers
32 views
angular ng-click to change class on click
I am trying to remove all classes "fa-3x " and change all classes to "fa-lg" and add a class called="testClass", when the user click on class toggle-button. is it possible to do it in angular? really ...
0
votes
0answers
12 views
Get json data and filter by parameter, then pass it to ion-slide-box (ionic slider)
I have some troubles trying to filter or get just the data from a json file based on the parameter received in $stateParams
Controller:
.controller('fieldImages', function($scope, $stateParams, ...
0
votes
2answers
23 views
Make 20 REST API calls in parallel and combined the data after all request is completed and display on screen using angularjs
I am working to develop a page which display the list of 20 product details using Angularjs & nodejs. I have REST API to get the data for each product separately. This is same service I use when I ...
-1
votes
0answers
7 views
How to fix “Unable to find file.json” in D3JS d3.json()?
I'm having trouble with D3JS in Angular.
I have a directive that creates a chart with a JSON file on the "server" (locally on my computer). The file can be open in my browser so it's the correct path ...
1
vote
2answers
31 views
AngularJS ng-include doesn't work
Here is a source of the main.html file
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
...
2
votes
1answer
22 views
ng-repeat with animate.css issue
I'm trying to pull just the pieces I want out of Daniel Eden's animate.css and apply them to a sortable ng-repeat and other elements in a way that the ng-enter/ng-leave etc invokes the animations when ...
0
votes
0answers
5 views
Bundling with browserify based on relative path
I am currently working on a big multi-device AngularJS application.
The app structure is like this:
desktop/
folder1/
file1.js
folder2/
file2.js
mobile/
folder1/
...
0
votes
0answers
18 views
AngularJS what should be tested
So me and my team are creating a web application and we are doing this:
one of them is responsible for the API:
the api will serve the UI, will provide it with data and has the possibility to ...
0
votes
0answers
7 views
How do I use transformRequest and transformResponse to modify data for a $resource?
I am using a JSONAPI compliant API, and one of the format requirements is that all data (incoming and outgoing) must be wrapped in a data object. So my request looks like:
{
"data": {
"email": ...
0
votes
0answers
26 views
How can I change text elsewhere using AngularJS function with parameters?
Alright so I found out what might be my solution for a task I am trying to accomplish: to use some sort of toggle feature which I have seen represented a couple of different ways in other questions ...
0
votes
0answers
8 views
Column size depending on checkbox value
Is it possible with bootstrap to set the size of the column based on check box value?
For instance:
//check box has value true than
<div class="col-lg-12 col-md-12 col-sm-12">
//for ...
0
votes
1answer
23 views
Building array in controller AngularJS
So I have a client controller like so (with only relevant code):
angular.module('employees').controller('EmployeesController', ['$scope', '$stateParams', '$location', 'Authentication', 'Employees',
...
-1
votes
1answer
18 views
Underscore.js get value of key object in array of object [duplicate]
i have to get the value of wave1 and wave2 from array by using underscore.js
array =[{"id":1,"name":"Monoprix", "pdv":16,"graph":[{"wave1":22,"wave2":11}]} ;
i try
$scope.wave1 ...
0
votes
0answers
6 views
Webstorm Debugger Does not Connect to Angular Application
I am trying to debug an Angular application using IntelliJ Webstorm (10.0.1). I created an application with Yeoman (1.4.6) using the command yo angular. I then opened the directory as a project in ...
-1
votes
0answers
37 views
JSON doesn't update list variable
I have this situation:
on my page called "replacements" I have all views to create/list/modify/remove registries with the same controller.
To show the replacements list I have this:
<ul>
...
0
votes
0answers
11 views
File upload using Angular and Node
I'm trying to achieve the following:
Client uploads a CV as part of a form
AngularJS sends all the form data (including CV) to the Node server
Node stores the CV on the server
I just can't seem to ...
0
votes
0answers
13 views
AngularJS: Bug in passing to a directive an asynchronously obtained value in a controller
I currently have an AngularJS controller that is basically getting some JSON asynchronously through a $http.get() call, then linking the obtained data to some scope variable.
A resumed version of the ...
-1
votes
0answers
16 views
Redirect to the same HTML page but display dynamic content on click of a button
I am displaying Student Details in this code,on click of More Button I want to redirect to a different HTML page say ,"MoreStudentDetails.html", and load more details of the student from the ...
0
votes
0answers
9 views
Page redirect on Page Load AngularJS
I am new to AngularJS and am completely lost as to doing redirection on page load. In a regular Spring MVC application,
Index.jsp
<%@ taglib prefix="c" ...
0
votes
0answers
12 views
View not updating after remote call
I am having an array scope variable.
$scope.rangolis = [];
I am getting data from remote calls and pushing the data to the array.
Service.getRangolis(page, rowcount, type, user).then(function ...
0
votes
1answer
9 views
AngluarJS Facebook buttons do not show up on the first time I load the page
I'm able to my buttons work. The only is that I can't get them to work with AngluarJS. This is what happens: When I click the link to enter the page to where my facebook buttons are located, they ...
0
votes
1answer
12 views
Adding functionality to my search and select filter outside ng-app - angularjs
The directive inside my controller is simply list items with data from my api call. HTML for that:
<div ng-app="WWnetworkEvents">
<ul ng-controller ="networkEventsCtrl">
...
0
votes
2answers
18 views
How to use ng-click on ng-option( or other way to assign value)
All:
I am learning how to use ng-options.
$scope.fieldTable = [
{
filed:"text",
title:"Global"
},
{
field: "relatedentity",
title: "Entity"
},
{
...
2
votes
1answer
10 views
How to get reproducible node-count in chrome developer tools timeline?
I am trying to optimize a very large single page app, built using AngularJS. I suspect there are some memory leaks, and I am trying to track them down using Chrome's Developer Tools. The first thing I ...
-3
votes
2answers
31 views
how to change the array values and format?
This is my array i'm trying to get below array format how can i acheive this ?
My Expected Output
$scope.getAlbumList = [
{
"album_desc": "Album 1",
"id": "399234688",
...
0
votes
1answer
15 views
True Dependency Injection
Let's assume that I have the below code.
$scope.rateApp = function () {
Service.rateApp(true);
}
When I don't include the Service as a requirement to the controller, AngularJs is going to kick ...
1
vote
1answer
13 views
How to bind input type='date' with angularjs
so I am trying to bind value for input of type date..
Here is my AngularJS code that I am trying to bind the value to:
$scope.date = new Date();
$scope.dateString = ...
0
votes
0answers
17 views
Angular directive watch not updating
Html of view
<div class="container-fluid" ng-controller="SearchController as search">
<pretty-print displayFileContents="search.displayFileContents"></pretty-print>
</div>
...
0
votes
0answers
5 views
Open popover after specific event and at specific place
Is it possible to open a popover without having a button? So far from the examples I see that popover is opened after triggered by click / hover. What if I want a pop over to show after an event is ...
0
votes
2answers
20 views
JavaScript directive not working like I would imagine it should
Link to Plunker.
(function(angular) {
'use strict';
angular.module('docsIsolateScopeDirective', [])
.controller('Controller', ['$scope', function($scope) {
$scope.naomi = { name: ...
0
votes
0answers
4 views
Wait until all dependencies are loaded in controller - resolve without $routeProvider
AngularJS provides with the RouteProvider https://docs.angularjs.org/api/ngRoute/provider/$routeProvider the resolve property. If any of these dependencies are promises, the router will wait for them ...
1
vote
0answers
6 views
directive compile with karma for angular
I got strange problem and i get stucked.
My point is to test list of directives in project.
Directives look like this:
angular.module('lessons', []).directive('uwTextarea', ['usUmpire', 'usConfig', ...
0
votes
0answers
10 views
Is it possible to have multiple run blocks in angular and grunt?
I am setting up $httpBackend to stub out fake API routes while our API developers are working on them. The problem is I have to put all my $httpBackend definitions inside my run block. As a result, my ...
1
vote
2answers
17 views
Alternative to ng-repeat if I don't need scope
I have a situation where I am generating a LOT of rows and columns using Angular and the performance is terrible!!
I'm assuming that it's because my ng-repeat is creating a new scope for each of ...
0
votes
1answer
11 views
Moved coordinates of the scene when DOM element with renderer is not at the top of the screen
I encountered a problem, where I have a three.js scene in angular custom directive, which is in the view. A the top, I have a navigation bar which is always there to provide navigatin and switching ...
0
votes
0answers
6 views
Losing zoom/pan when changing SVG source
I'm using svg-pan-zoom (https://github.com/ariutta/svg-pan-zoom/) in order to display SVG in my angularJS page :
<object id="svgElement" type="image/svg+xml" ...
0
votes
0answers
11 views
Angular, karma/jasmine tests not handling .bind
I am writing unit tests for some of my functions and the tests runner seems to have a problem with a bound function. I am binding a function so I have reference to the this inside an inner function. ...
0
votes
1answer
24 views
AngularJS simple Service
I'm working on an AngularJS service. The first is getting a product's info from an API:
getProductInfo: function(ean) {
var deferred = $q.defer();
api.get('products/' + ean, {})
...
0
votes
0answers
13 views
Getting angular documentation (intellisense) when writing Javascript?
Ok so I've read Intellisense for angular.js does not work in a javascript file and googled and even installed https://resharper-plugins.jetbrains.com/packages/AngularJS/ (I have resharper).
I do have ...