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 applications are also frequently known as single-page ...

learn more… | top users | synonyms (2)

0
votes
0answers
6 views

Zoom Image on ng-mouseover

Hi I would like to zoom my image on mouse over. I can already zoom it but what I want to have is to display the zoomed image as an overlay so that the format of my table wont be damage here is my code ...
0
votes
1answer
9 views

Parsing parameters onclick for angularjs app

I am working on enhancing a feature of an already deployed application. All the js code is minified and i only can excess html files. I need to call a function on-click of a 'div' which parse some ...
0
votes
0answers
2 views

Need help debugging ui-router: Unexpected end of JSON input

I'm getting an error (see below) when my Angular app initiates in the production environment Problem: This sometimes prevents the initial state from rendering, leaving a blank page. angular.js:...
0
votes
2answers
9 views

using query to read the last value and change it firebase angularjs 1

I have this database service/ -KSxobYDhjUJeSvu3dC1 -Accion:"Nueva ronda" -Codigo: 3 -dateTime: 1475284727 -notify: 0 -num_mesa: 0 -KSxobptdYSc-qrCSbyU -Accion: "Orden cancelada" -dateTime: ...
0
votes
0answers
9 views

update controller variable and use it in view from directive (angular 1.5)

I'd like to update a controller variable from a child directive. I updated controller variable but this value doesn't change in the view. Need I use $scope.$apply() ? $digest ? this is my code http://...
0
votes
1answer
9 views

angular $stateprovider not working as expected

I'm using angular $stateProvider to allow routes throughout my app. I have an index.html and I am changing the html content inside using the following... app.config(function($stateProvider, $...
0
votes
0answers
6 views

how to detect template file status in $routeProvider.then?

$routeProvider.when('/dev/:name', { templateUrl: function(p) { console.log('app.config.js: DEV_MODE TEMPLATE'); return 'Views/Layouts/' + p.name + '.layout.html' ...
2
votes
2answers
23 views

Add item to a 2nd list by index of item in the 1st list

I have 2 lists. I have an Angular service with a splice-based method that allows me to remove items from the first list (called "items") based on their index via a ng-click action. service....
0
votes
1answer
14 views

How can I migrate data in index.html to a controller?

I have an angular custom directive called 'workHistory'. It's sole purpose is to display a d3 chart. For the purpose of this question, d3 knowledge is not required. Basically, the directive runs how ...
0
votes
0answers
7 views

No reponse while sendind form data from angular js to mysql db using spring

HI all i am new to angular and i am trying to learn it. i have developed an app that takes input data from angular and validations done and post the data to my server using spring as controller. my ...
0
votes
1answer
12 views

ui-router pass URL query parameters to controller via service - $stateParams values 'undefined'

Using ui-router and attempting to pass URL query parameters to the controller in the .config of the module, using a .service that has been injected into the resolve argument of the .state definition. ...
0
votes
1answer
9 views

How to use promises between angular factories and controllers? - Having annoying issue - Thanks

Factory: function thingyFactoryFunction($http) { return { search: function(city, state) { $http({ method: 'POST', url: 'http://localhost:7500/search', ...
0
votes
1answer
22 views

Using the same function to style each repeated element slightly differently in AngularJS

I want to know how to properly reuse controllers, modules and functions in AngularJS to make a slightly different offset for each of the posts (placeholders for now just showing where the posts will ...
0
votes
0answers
10 views

How to trigger ng-change on md-select when model is changed?

I'm using md-select and need to trigger certain code when the value changes (building a Country/State selector). I have it working fine when I change the value through the control but I also need to ...
0
votes
0answers
4 views

Overlaying a div on a cordova plugin

I'm trying to develop an app in cordova that save videos with an aspect ratio squared. What I want is to display a layer over $cordovaCapture.captureVideo that makes the user think it's recording in ...
0
votes
2answers
25 views

window.open() doesn't work correctly inside a JS function

I tried to create an updates list for my web, so that when I click on the relevant update- a new additional small html window will open and I will see the full update content. This is the code I wrote:...
0
votes
0answers
5 views

Test a directive function through watch

I have a function in angular directive that gets triggered on watch. How do i test the timeout based scrolling activity of the function scroll since its not in scope? scope.$watch('elementId', ...
0
votes
0answers
7 views

directive cannot bound for component?

I have the following directive to handle the status of <input type="file" id="newFile" eg-files="model.files" has-file="model.hasFile" /> for file uploading. (function () { 'use strict'; ...
0
votes
0answers
8 views

Unexpected result of ng-bind in angularjs

$scope.clickedNum = function(passedNum){ $scope.string1=''; $scope.numToDisplay=passedNum; for (var i=1; i<=passedNum; i++) { $...
0
votes
1answer
10 views

angular how to let html redner the scope variable as a string

Say I have the following line in a controller hmmCtrl: $rootScope.value = 1; $scope.hmm = "{{$root.value}}" And in html, if I have: <section ng-controller="hmmCtrl"> {{hmm}} </section>...
0
votes
0answers
5 views

Angular JS - Compile a list of HTML items coming from Pusher event or $http call

I'm going to be showing notifications to users. Each one will consist of a template (inc Angular directives) and some data to merge with it. Initially the notifications will be loaded using an $http ...
1
vote
0answers
15 views

ng-repeat=“todo in todods” How do I access 'todo' outside of ng-repeat?

I can only access the clicked 'todo' within ng-repeat. In order to access it else where, for example within the col-sm-8 div, I have to pass it into my controller. Once I pass it in my controller, I ...
0
votes
1answer
9 views

Ionic HTTP Request Delayed Update

I've got a basic ionic application which lists jobs on a page, when a job is clicked this calls my REST API and returns people on that job. The problem I have is that when the job is clicked the ...
0
votes
3answers
22 views

I cannot get my Angular app running locally

I cannot get my angular application to run locally. I am getting an error that my interview.js and angular.js are not being found. Also, angular is not defined in the interview.js file when I open it ...
0
votes
0answers
23 views

Best way to solve typescript error - property does not exist on type

I have several different situations where I am trying to define a self made property on an array or object in typescript but commonly get the error: "Property x does not exist on type Object (or type ...
0
votes
1answer
10 views

How can I load a default template into an Angular ui-view

I'm delving into more advanced Angular routing options using ui-router. I've hit a bit of a problem with <ui-view>, specifically getting a nested ui-view to load with a default template. I ...
1
vote
2answers
9 views

How to truncate the length of a result in AngularJS uib-typeahead

I'm using the Angular UI Bootstrap typeahead as follows: <input type="text" ng-model="selectedUser" uib-typeahead="user as user.Name for user in allUsers | filter:$viewValue | limitTo:8"/> ...
0
votes
1answer
19 views

Angular 1.5 nesting components

I have a container component that has 2 other controllers nested in it. I have them set up like so container -> component1 and container -> component2 My train of thought here was that I could ...
0
votes
0answers
12 views

Karma error [TypeError: Cannot read property 'push' of undefined]

When trying to kick off Karma for my angularJS testing, I keep getting this error stack right at the beginning. `ERROR [karma]: [TypeError: Cannot read property 'push' of undefined] TypeError: Cannot ...
0
votes
0answers
9 views

Routing state with unknown number of parameters

i'm building a file manager and I'm using ui.router. I would like to have a separate state for each directory and file view -> unsure of what the routing should look like in this case. if I am in ...
0
votes
0answers
8 views

Angular 2: Update list from other view using a service (http + json)

My first post here so: Hi! Stuck with an Ionic 2 (2.1.0-beta.1)/Angular 2 question which I hope you guys can help me with: My basic setup is: page 1 with "favorites" list second page with search +...
0
votes
1answer
19 views

$state.go not changing for one specific state

For some reason, for just ONE state, it is not changing. I have no idea why it wouldn't work for one and not the others. I'm getting no response in the console at all. I am also getting nothing from ...
0
votes
0answers
8 views

Show Spinner for $Http requests using Interceptors

I am new to AngularJS. Can anyone show me how to get a spinner for the http requests using Interceptors. Thanks in advance
1
vote
3answers
23 views

How to enter multiple email ids in angularjs form field?

I want a form field in angularjs form such that I can enter multiple email ids separated by commas and they get updated in the $scope object in array form. For eg. in form field i entered email ids: ...
1
vote
2answers
16 views

ng-if and ng-class-even/odd doesn't work well together and won't get expected outout

Here,I am loading a json file and using ng-repeat I display json data into table form.I am adding following features to code. checkboxes to add the two CSS: Bubble CSS text-danger [In built ...
0
votes
2answers
8 views

AngularJS component injector moduleerr

I try to write my first component. Actually, I refactor one of my previous webpage to use more of the AngularJS functionality. I use AngularJS 1.5.8 Honestly I always got the following inject error: ...
0
votes
0answers
3 views

Angular RouterUI $location.search() vs $stateParams

With the use of Angular UI Router - you can access parameters url using $stateParams. Additionally, the $location service also has a way to access URL parameters: $location.search().param1 I know ...
0
votes
0answers
4 views

why templateUrl can accept any object name, but controller can't in $routeProvider?

$routeProvider.when('/dev/:name', { templateUrl: function(p) { return 'Views/Layouts/' + p.name + '.layout.html' }, controller: function($...
-1
votes
1answer
18 views

How to inherit functions from a parent component in angular2

I am new to angular2, feel free to help me tune my vocabulary / terminology I have a class that is composed of two directives like so: in parent.component.ts, the Parent is made up of Foo and Bar @...
0
votes
1answer
2 views

nancy- Issue sending a large response body

So I am trying to send a really large amount of data back to user requesting. var map = FindByName(name); if (map == null) return Negotiate.WithStatusCode(HttpStatusCode.NotFound); ...
0
votes
0answers
12 views

Download PDF Angular JS from MVC (return File)

This code works without using angular only MCV but when I return the file to Angular JS doesnt work download the pdf on the browser. I think the problem is on generateForm(contactId: number, ...
0
votes
0answers
8 views

control a menu with a radio button by setting conditions using angularjs

control the menu with a radio button by setting conditions using AngularJS Hi I have a radio button with two options (A, B), and a list with 5 buttons that show or hide a condeúto from a ng-show. ...
0
votes
0answers
17 views

$state.go() keeps redirecting me to URL location and otherwise location

I have a $urlRouterProvider.otherwise('/login') in the routes so if it does not recognize the URL it goes back to the login page. after the user logins in I have a state.go() to another page in that ...
1
vote
0answers
12 views

Spring MVC + Angular routing gives 404

I have created a Spring MVC project along with a client side angular app. For the angular app, Here is the content of /webapp/resources/js/app.js file 'use strict'; // Declare app level module ...
-1
votes
0answers
26 views

Can't pass objects into Service functions through “this.” functions but can with var functions

I have an angular service where I have these functions this.func1 = function (value) { console.log(value) }; this.func2 = function () { console.log("hello") }; var func3 = ...
0
votes
1answer
17 views

Access to a collection from resolve

How can I verify a specific field from the users collection of the accounts module of meteor ? Supposing the next code: $stateProvider.state('myState', { resolve:{ function($q) { if(...
1
vote
1answer
26 views

AngularJS $q.all doesn't wait for promises

I'm developing a simple app with Ionic/AngularJS that should save contacts in the address book of the phone. I have a controller that receive contact infos and save it after the check of its ...
0
votes
1answer
7 views

Material Angular styling doesn't work for <md-card> on ui-views

I want to get this effect on the ui-views <md-card id="sidebar" flex="20" class="sche-card" layout-padding="true"> <div ui-view="card" autoscroll="false"></div> </md-card> ...
0
votes
3answers
30 views

Bootstrap column pushing/pulling issue

I thought that I understand how pushing and pulling columns work...but I guess I was wrong. I have the following jsfiddle where I created a very simple grid. It looks like this while in xs: ...
1
vote
1answer
19 views

Split an object properties in two columns

I wanna split an object properties in two columns, when I was using bootstrap I was able to do it with the clearfix class like so: <div class="clearfix" ng-if="$index % 12 == 0"></div> ...