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
Straight Forward Angular Cordova APN Implementation for device token Retrieval
I am trying to set up APN reception on an Angular Ionic Framework App with Cordova that has been deployed using Yoman. And so far I am not getting any positive result whatsoever.
What I would like is ...
0
votes
0answers
5 views
angular.js select doesn't show the option value in the begining
I am using angular.js and bootstarp - angular-ui-bootstarp. and I found a problem that when using the select, even the option is not empty, the select in the page always show nothing until you click ...
1
vote
0answers
16 views
Checking unique name and ignoring in case of modify
I have a form, a modal form which I am using to modify name/email address of the user. The problem is its sending the request to server to check unique value in all cases, its fine when creating new ...
0
votes
0answers
12 views
AngularJS and selects
I'm using AngularJS in my project. And I have some interesting task. I have first select with categories and second with sub-categories. When I'm selecting category in other select I want to see just ...
0
votes
0answers
5 views
Get compile content of Angluar directive
I want to get rendered content inside of a Angular directive. Here is my code:
Javascript:
app.controller('appCtrl', function($scope){
$scope.items = [1,2,3,4]
});
app.directive('pane', ...
0
votes
1answer
12 views
how to get append my api key on URI given by british airways
This is the link of british airways developer site :
https://developer.ba.com/ApiInfo
How to apply my key to the link and get information ??
Format of a URI
A resource is accessed using a URI in ...
0
votes
0answers
5 views
Html angular intellisense in visualstudio
I am wondering how to get intellisense for angular on html pages in visual studio 2013 update 3
I can get intellisense for the js pages using the _references.js. However i would like to to be able to ...
1
vote
1answer
16 views
Advanced structuring: Surrounding ngRepeated items Angular.js
You have an array of objects you're iterating over,
How would you surround every (x) elements with (element)?
If your goal is:
to have an (element) surrounding every 4 ng-repeated elements?
...
0
votes
0answers
10 views
UI-Router's resolve functions are only called once- even with reload option
In Angular ui router, when $state.go("main.loadbalancer.readonly"); is ran after main.loadbalancer.readonly has been previously activated, my resolve: {} is not being evaulauted/executed. The resolve ...
0
votes
0answers
22 views
Delete item from list of angular js and database
hi i am new to angular js. In stage of learning. I had fetched data from database after the json encode. It worked sucessfully. I am using code igniter. Now i want to delete the list fetched from ...
0
votes
1answer
30 views
How to set a boolean flag to collapse/expand a row with ng-repeat
I have this plunker code.
What I'm trying to do, is to display the gray box one time per row.
To achieve this, I thought to modify the partition filter in order to return a JSON to add it a new ...
0
votes
0answers
9 views
Angular JS - sorting a collection using geolocation
I'm rendering a collection of store locations that contains coordinate data (longitude, latitude). I'd like to sort the results using the user's geolocation—specifically, ordering by closest store ...
-1
votes
1answer
14 views
Directive cannot access scope data source
I have simple directive like this
View:
<div ng-if="newReg.checkedDomains.length>0">
<div extension-list="newReg.checkedDomains"></div>
</div>
Directive:
...
0
votes
0answers
18 views
How to upload bitmap image and convert to svg on client side
The use case is storing resized svg in database. This question has 2 parts.
How to get a url of a loaded image from
How to convert the image via canvas to svg
I've been able to use the following ...
0
votes
0answers
8 views
angular filtering ng-grid with dynamic select
First off I am new to Angular.
I have a select field with a few options All, Name, EmployeeNumber, City
<select id="filterType" ng-model="selectedItem" class="form-control" >
...
0
votes
0answers
6 views
node-webkit screen flicker
I am trying to repurpose an old .exe I made using TideSDK a couple years ago. I have replaced the relevent TideSDK code with node-webkit code, and everything seems to be working as expected. With one ...
0
votes
0answers
13 views
angular-ui datepicker initial state of datepicker not formatted per datepicker-popup
I'm working with an angular-ui datepicker and everything is actually working fine, with the exception of the initial state of the datepicker. AFter I pick a date, it looks fine. See below:
Initial ...
0
votes
1answer
20 views
Angular TypeError: Cannot read property 'then' of undefined
I have a data service like this:
this.myFunction= function(callback) {
var url = rootURL + "path1/path2/service.json";
var promise = $http.get(url);
promise.then(function(payload){
...
-1
votes
0answers
17 views
Angularjs foreach IE8
I am running forEach on UL to check if it has any child. The code below works fine in all browser except IE8 because ng-repeat is creating comments in UL and IE8 is seeing comments as child. Any ...
0
votes
2answers
9 views
Integrating library with asynchronous loading in angular app
I want to use the library MIDI.js in my angular app. To initialise it, you call MIDI.loadPlugin which takes a callback that fires when some files are loaded.
I want to make a controller in my app ...
0
votes
1answer
35 views
AngularJS and ngRepeat Issue
long-time lurker, first-time poster.
I'm currently building an application using AngularJS, but I'm running into an issue I can't seem to solve. I've only been using Angular for 2 months, so I'm ...
0
votes
1answer
10 views
Where can I get Angular ui-grid selected items
Testing out Angular ui-grid (ng-grid v.3.0). Can not for the life of me find the selected row. I just want to grab the rows or even row ID of row when a user clicks it. Found the top comment here but ...
0
votes
1answer
16 views
AngularJS read data from JSON
hello I am new on angular and i come again to have some help.
I try to get datas from a json file : teams.json but it doesn't work
my controller is like this :
app.controller('TeamController', ...
0
votes
2answers
21 views
jquery event not triggered with angularjs
I'm lost about jquery selectors and events.
I'm trying to add a click behavior on a bootstrap table-hover, however the .click isn't triggered and i don't know why.
I've tried :
$( ".table-hover ...
0
votes
2answers
16 views
Iterating through an AngularJS resource with nested arrays
I have a small webapp that uses AngularJS on the front end and Java on the back-end. I am using REST for the communication.
On the back-end I am creating a list of lists, like this:
...
0
votes
1answer
65 views
How to put bullet between items?
I have some list-items from an ng-repeat from Angular.
I'm trying to put a bullet point between two items but it keeps putting it after the items.
Currently looks like
Venue1• $20
I need it ...
0
votes
0answers
14 views
AngularJS cache service for in-line .svg files (wrapping $http with promises)
I have implemented an angular <svgimg src="file"> directive to load .svg images inline, the link function uses $http to load the file which is then parsed to add and remove tags. The result is ...
1
vote
1answer
24 views
checking function when model changes in other instance of the directive?
In angularjs I have made this simple example with two inputs. I want to change the background color of a input to green if its value its equal to 'green'. This example works, (it changes the ...
0
votes
2answers
18 views
Using $provide and $q
I'm building a mobile app using Ionic in conjunction with ngCordova. In the hopes of developing in the browser as much as possible I want to override the ngCordova methods to return mock responses ...
0
votes
0answers
7 views
$cordovaDatePicker from ngCordova (hybrid app)
I have the following code snippet in my application:
...
$scope.fn.showDatePicker = function () {
$cordovaDatePicker.show({
date: new Date(),
...
0
votes
1answer
10 views
Using binding with UI Router
I am working with ui-router and have several states defined. On one of my views I have a form where a user can add a 'team' to the view. I have a button for each team to view additional details on ...
-4
votes
1answer
32 views
responsive design with grids [on hold]
im sure this is fairly straight forward,
Looking at :-
https://blog.angularjs.org/?view=snapshot
what is the best way to achieve this layout, or is there a particular name for this
ie. changing ...
1
vote
0answers
20 views
AngularJS access to Cbssports REST API
I am trying to create an angularjs application as a cbssports plugin.
They provide a RESTful API.
The following is my $http request:
$http.get(basePath + 'league/owners?access_token=' + ...
0
votes
1answer
23 views
How does one chain successive/consecutive $http posts in angular?
I'm pretty new to AngularJS and am learning as I go along. How do I chain successive $http posts? I need reponse data from the first $http POST to use in the second $http POST, of which I'll also need ...
0
votes
1answer
13 views
tr-ng-grid not respecting order-by
I am using this angularjs module for a table: http://moonstorm.github.io/trNgGrid/release/index.html
I am displaying my data like this:
<table tr-ng-grid="" items="logs" page-items="100" ...
0
votes
1answer
30 views
Angularjs: Ng-Model and Ng-Change giving undefined in console
I have a dropdown that is defined using angular's ng-options syntax. I also have ng-model on the element and I am trying to get the selected model to output to the console. I have read a lot of ...
-1
votes
1answer
45 views
How to think in ember from an angular background
I have a new project where I have to use ember. How can I transition to ember bearing in mind that I have strong understanding and experience in angular.
0
votes
0answers
14 views
Grails angularjs phoneCat example shows blank index.gsp page
I have created a grails application following the angularjs PhoneCat tutorial here (http://www.inoneo.com/en/blog/14/grails/angular-phonecat-tutorial-using-a-grails-backend). When I tried running the ...
1
vote
2answers
39 views
Group item detail using AngularJs ng-repeat
I would like to perform a group by function inside of an ng-repeat
Given the following data:
var items = [];
items.push({ id: 1, widgetId: 54, colorId: 45 });
items.push({ id: 2, widgetId: 54, ...
0
votes
1answer
9 views
Iterating through an Array with Controller As Syntax -AngularJS
I am currently have trouble displaying my array using the "Controller as" syntax if I pass the $scope in to my controller it works fine but using the "Controller as" syntax and this. My array does not ...
0
votes
1answer
21 views
Change the URL without changing view and controller Anguarjs
In my Angularjs project, I have a form having searching filter. What I do is I can select filters and then click on Search button. It gives me a list of search results. From that search result, I have ...
0
votes
0answers
10 views
element stops working when stuck to top with directive
I have a side navbar with a button. When I scroll down I want the button to stay where it is at the top of the page.
The navbar looks like this:
<div id="sidebar-wrapper">
<ul ...
0
votes
1answer
18 views
In AngularJS, the data is showing up only in ng-repeat
I've got the following getUserData.js:
var App = angular.module('App', []);
App.controller('UserdataController', function($scope, $http) {
$http.get('data/getUserData.php')
...
0
votes
0answers
16 views
Setting the scroll rate on a div
I have a bootstrap list group (with angularjs) of a few hundred items. The list is set to be scrollable (dont want to have a giant page). However if you click or use the scroll wheel, it will move by ...
0
votes
0answers
20 views
In AngularJS, how to watch an element's height change to set another element's height
I need to get the height of an modal window. And set the height of another element.
Caveat:
The height of the original element changes depending on the connection speed. I've accomplished this ...
0
votes
0answers
7 views
$stateChangeSuccess not called
I have a refresh function that invokes $state.go(). In some instances the $stateChangeSuccess handler is being called, and others it's not, but I don't understand why. I need the state change handler ...
0
votes
1answer
31 views
Remove directive from the DOM
I am using a third party library called Swiper. idangero.us.swiper.js seems to not play nicely with element directives that remain in the DOM because it assumes that "slide" elements will be direct ...
0
votes
1answer
12 views
Page not launching with AngularSeed on Firebase URL
I followed in detail the five minute tutorial at: https://www.youtube.com/watch?v=hj0LyZ13D3Q
I executed the following steps:
I set up an account at Firebase.com
I set up a new app within my ...
0
votes
0answers
17 views
Angular JS breaking two way binding on isolate scope when binding to a primitive and using ng-include to dynamically load a template
I have a bit of a strange scenario that is a little different to the other childscope and two way binding issues I have seen on Stackoverflow.
I have a field generation directive that receives a ...
0
votes
0answers
19 views
AngularJS ng-input cursor jumps during text entry
Using angular 1.2.25. When using the input field in a dynamically generated form, the cursor jumps to the end of the input field when any keys are pressed when in focus. This makes editing values very ...