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
4 views
Navigation between pages in ionic and angularjs mobile app
I am very new in ionic angularja world. started to work on very simple thing but stuck.
My requirement,
I am creating an login page and a register page. if user click on register button from
...
0
votes
0answers
11 views
Getting two Scopes of same controller in Angular.js
I just started to work with Angular, it's pretty nice to work with it, I just facing an issue of controllers's scope.
I have two files
1- header.html
2-dashboard.html
I included header.html in ...
0
votes
1answer
16 views
how to Access javascript Varibale in Angular js with HTML
I have following code
<head>
<script>
var sourceUrl = 'image url';
</script>
</head>
and following HTML
<span style="background-image: url('{{sourceUrl ...
1
vote
1answer
6 views
Provider 'xxx' must return a value from $get factory method in AngularJs
I have written an angularjs factory as below
module.factory('LogService', function () {
function log(msg) {
console.log("Rahkaran:" + new Date() + "::" + msg);
}
return
{
...
0
votes
1answer
9 views
Using a service to cache value AngularJS
I access a resource from my REST API that I want to cache. The value is used by several controllers so I decided to create a service that returns that value.
Shown below is the code for the service:
...
0
votes
1answer
19 views
Getting a number from a JSON string in Angular JS
I have a json String coming in which looks like:
"Action" : "0876"
I am getting this using the expression
{{submenu1.Action}}
What I want can be summarised as :
Step 1: Parse and get the final ...
1
vote
0answers
8 views
Cartogram using angularjs and d3 TypeError: undefined is not a function
I am creating a cartogram of srilanka using d3.js and angularJS. I have a controller and a function to create it. It returns an error saying TypeError: undefined is not a function
HTML:
<div ...
0
votes
2answers
18 views
Simple Angular Form Validation Not Working
I have a simple Angular form here:
<form class="form-horizontal" role="form" name="alertForm">
<div class="form-group">
<label for="cautionMultiplier" class="col-sm-2 ...
0
votes
1answer
9 views
directive with transclude:true, how to access parent scope variable?
this is my code,
theModule.directive('someVideo', [ function(){
function link(scope, element, attrs, parentCtrl) {
var htmlVideo = angular.element(element).find('video')[0];
var ...
0
votes
0answers
8 views
Include AngularJs in Built in Html helper in Razor
I am trying to include angularjs in Html helper
but it is not working can any body help
here it is what i am trying
@Html.EditorFor(model => model.Questions.Question ,new{ng_model="question"})
...
1
vote
0answers
10 views
How to send Notifications to all clients connected in Cordova Socket IO from a single Nodejs Socket IO Server HTML
I'm trying to send a single message to all connected clients from a server running Nodejs+Socket IO.
Client :
Client side is a cordova based Notifications display screen with all necessary css + ...
0
votes
1answer
15 views
pass scope object's key value form function input angularjs
pardon me if this is a repeat question and i am still a beginner.
see the code below :
$scope.clicked=function(key,value){
$scope[key]=value;}
the above code returns $scope.key is undefined or ...
0
votes
1answer
12 views
Sorting Object by keys numerically with AngularJS
Ok, so I am trying to sort out my json data into a table:
{
"0": {
"1": {
"airdate": "2011-12-04",
"file_size": 368279154,
"location": "filepath",
...
0
votes
0answers
12 views
Best recommendation for building social site using nodejs and angularjs [on hold]
I need some advice on how to get started with building out this application. I'm a newbie to javascript and need some guidance on best way to blueprint this project.
the app will need a sign up ...
0
votes
2answers
30 views
How to render JSON data in HTML page Using Angular JS
I have a Json data like this
Object {Science: Array[3], Accounts: Array[3], History: Array[3], Mathematics: Array[3]}
Accounts: Array[3]
0: Object
1: Object
2: Object
length: 3
History: Array[3]
...
0
votes
2answers
12 views
angularjs $http.interceptors.push Uncaught Error: [$injector:unpr]
I'm trying to set access-token to the header after a login is successful. I'm trying to achieve it by using interceptors
Uncaught Error: [$injector:unpr] Unknown provider: aProvider <- a <- ...
1
vote
1answer
30 views
Form action in angular
I'm trying to setup login with angular.js and devise.
This is my form html:
<form ng-submit="submitLogin(loginForm)" role="form" ng-init="loginForm = {}">
<div class="form-group">
...
-1
votes
1answer
20 views
Angular $http not sending header in OPTIONS pre-flight
I'm trying to connect to an API with the $http service that requires a certain header to be defined for POST requests:
app.run(['$http', function($http) {
$http.defaults.headers.post.hello = ...
0
votes
1answer
9 views
Express.js with Foundation for Apps
I am trying to set up the Express.js web framework to use with the foundation for apps architecture. I am relatively new to the Node world.
What changes must I make to the gulpfile.js, and app.js to ...
0
votes
0answers
10 views
Consecutive browser tests, not concurrent
I am using multiCapabilities to setup multiple browsers. Is there a way to make them consecutive and not concurrent?
0
votes
0answers
11 views
Query AngularJS's $cacheFactory values
I've correctly set Restangular to cache my http requests via:
Restangular.withConfig(function(RestangularConfigurer) {
RestangularConfigurer.setDefaultHttpFields({cache: true});
});
I would ...
0
votes
0answers
9 views
angularJS: auto play video on source/stream change
I am using getUserMedia to capture the stream from user camera, so initially the video element source would be null, after successful capture, it set the src attribute of video, and call play method ...
0
votes
0answers
17 views
Why is a modal using angular-ui select being rendered with angular errors?
I'm using the Angular select-ui module on a rails app. I'm rendering a modal that most of the time renders correctly, but occasionally, it renders and looks like the below, there is some kind of ...
0
votes
1answer
13 views
angular view not updating when checkbox clicked
View not updating when checkbox is checked. Should I used $scope.$apply?
I need the Current state to change between YES and NO depending on whether the checkbox is checked or not. Here's the code on ...
0
votes
0answers
19 views
Angular get user object on full page refresh with jwt
What is a proper way (best code organization) to get user object from JWT in storage on full page refresh (it requires new ajax request) ?
How can I perform an ajax request before my angular app's ...
-1
votes
0answers
29 views
Angularjs Controllers not binding [duplicate]
I have completely updated all informations I'm still confusing... Why this global func is not working?
Here is my Html code
<body ng-app>
<div ng-controller='xapp'>
...
-2
votes
0answers
38 views
Why ajax cannot post to server 999 objects? [on hold]
I used HandsOnTable. I show 999 data object on handsontable. I use handsontable's save event and i can take all objects. But AngularJS's post can't post to server 999 objects list.
> hOT.getData() ...
-1
votes
1answer
21 views
Input using ng-model not binding when textbox is populated via javascript
I have a text box that gets populated using javascript that is getting the data by reading a QR code and setting the value. I am using ng-model to bind to a variable in my controller which works fine ...
0
votes
1answer
10 views
asp .net Angularjs ajax httpPost
my ajax call
var PojedinacniPageController = function ($scope, $http, $routeParams) {
$scope.contactID = $routeParams.covikId;
var odgovor = $http.post('/Home/GetContact', ...
1
vote
0answers
25 views
Document.getElement*** always returns empty inside an element bind block of a link function
My Directive:
app.directive('someDirName', function () {
return {
restrict: 'A',
link: function (scope, element) {
element.bind('click', function () {
...
0
votes
0answers
9 views
AngularFire 0.9.0 post-login (auth) Binding
Simply copying the code at https://www.firebase.com/docs/web/libraries/angular/guide.html#section-angular-authentication results in a working codepen (here it is as a github gist) that logs me in/out, ...
0
votes
0answers
15 views
Authenticating in angular / ionic with $http and php / Yii
I am trying to authenticate to a Yii API using an ionic / angular app, and can't get headers within the PHP page.
The angular code is:
$http({
headers: {'X_ASCCPE_USERNAME': ...
1
vote
1answer
28 views
Dynamic form names and ng-repeat
I need to create several forms on a page based on a dynamic list I get from server. In order to do that I'm trying to use angular ng-repeat like so:
<tr ng-repeat="row in data.rows" ...
0
votes
0answers
6 views
Angular + Cloud Zoom not working with ng-hide
Based on this implementation of Angular + CloudZoom
http://embed.plnkr.co/iULn27/preview
I am trying to use it with ng-hide but it seems it's not working
http://plnkr.co/edit/wW1X7m?p=preview
...
1
vote
1answer
32 views
How filter date properly with angular js by month and year
In my data base dates are arranged like below (dd/mm/yy)
Date
-----------
10/12/2014
22/10/2014
14/12/2015
I am using angularjs template and trying to sort the date field as(sorting using both ...
0
votes
1answer
16 views
Angular scope changes in service not affecting template
I've set up a service that can display a status message on a template.
.service('displayStatus', function ()
{
var statusTime = 5000;
var self = this;
this.show = function ($scope, type, ...
1
vote
1answer
15 views
Angular UI Router with Polymer - Animated transitions possible?
am I the only one who would love to see angular's UI router work with polymer's page transitions? I know there's a router for polymer but I would argue that it is not as friendly/mature as that for ...
0
votes
0answers
8 views
Set Default View for multiple states AngularJS ui.router
I have multiple views in an angular application. Currently, I am using ui.router $stateProvider to establish the views. However I find this very tedious as I have to repeat each of the views in every ...
1
vote
1answer
22 views
Angular checkboxes in tree view
I could not find a really good suitable directive for creating a tree view with checkboxes from a JSON-structure, so I did this with a self-calling iterator, as seen here:
...
0
votes
0answers
34 views
Traversing Two Json Arrays with ng-repeat
I'm working on a page that ng-repeats a ng-template for every element in a json array. The Json array also has sub arrays. There is a ng-repeat at the end of the template that takes care of the sub ...
-2
votes
3answers
32 views
How to format date into DD/MM/YYYY in angular js [duplicate]
In my database i am storing date in this format 2015-12-14 00:00:00(yy/mm/dd h:m:s).How can i convert this date into this format 14 dec 2015 in angularjs ?Here is the format of my angular data:
...
0
votes
1answer
13 views
Angular Google Maps Markers - Different property name for longitude and latitude
I am building a very straight forward map using angular-google-maps. The data I have to work with uses different names for the id and lat/long properties than what Angular Google Maps expects. The API ...
0
votes
1answer
21 views
Chrome app access external resources with JavaScript / jQuery / AngularJS
I am building a Chrome app that visualizes some data. My data is collected separately and is stored in a local folder that is unrelated to the Chrome app. I am using Angular + D3, and I want my app to ...
0
votes
1answer
18 views
Angular UI Router: ui-view positioning on state change
I am currently developing a heavy angular-driven homepage for an agency. Now I am at the state-change. I added a page transition with a simple fade effect. Now the problem I have is, that the new ...
2
votes
2answers
27 views
How to create multi line cells in nggrid
I am using nggrid for my data representation and one of the column holds address which is sometimes multiline and long. I want my row to be multiline with size depending on number of lines address is ...
2
votes
1answer
25 views
<select> tag brings up dynamically a different set of input fields depending on selection in AngularJS
Im trying to create a form, first element should be a tag with a few options and each of them will dynamically bring up a different set of forms depending on what the user chooses. The idea is within ...
-1
votes
1answer
38 views
angular array filter function not working
I am using a function as a filter for an array, but the array is not getting filtered.
Code is below:
<script>
var app = angular.module('myApp',[]);
app.controller('myController', ...
-1
votes
2answers
19 views
How to pass object array from one controller to another?
I'm new to angularJS and I have one problem
I have
<div class="item-hover circle effect1" data-ng-repeat="order in Bands">
<a ng-click="getPerson(order)">
<div ...
0
votes
1answer
18 views
Paste html content as plain text in contenteditable div using AngularJs
I want to paste text selected from a certain document(pdf, docx, html), into a div of contenteditable type.
Now I want to remove all the formatting of the clipboard text before it is rendered. So, ...
0
votes
3answers
29 views
What's the best way to store URLs, or URL domains, in AngularJS app?
My AngularJS app makes calls to an API which is currently hosted at one service, but was previously hosted at a different one, and in the near future is likely to be hosted yet somewhere else.
The ...