0
votes
0answers
6 views

module.run() and $state.go() angularJS

I might have some kind of missunderstanding. Im using angular ui router and i have the next issue: I have the next State provider: angular .module('MainApp') .config(['$stateProvider', ...
0
votes
0answers
11 views

using http call in communicating with webapi using hottowel angular js

Since I'm following pluralsight video tutorial which use breezejs for client side data access. I want to change this data access, from breezejs to asp.net-mvc web api. Question is how can consume ...
0
votes
1answer
12 views

How to use $compile in Angular to export HTML to external function

I have an issue where I can't send compiled HTML to an external function. I can do it if I do everything within the Angular app space. But when I send my compiled result to an external function it is ...
0
votes
1answer
14 views

Can a backbone model be used with angular?

Here is sample of one backbone post model: var Post = Backbone.AssociatedModel.extend({ urlRoot: ApiService.resolveRESTUrl('posts'), defaults: { age : 0, fname : "", ...
1
vote
1answer
26 views

AngularJS:How to read data from the json file using angular

We are using JQuery ajax to read json data and convert into object. jQuery script $.ajax({ type: "GET", dataType: 'json', url: 'data.json', converters: { ...
0
votes
0answers
7 views

Improving FullCalendar render performance

I'm using the ui-calendar angular directive for FullCalendar and my month views are getting really slow. A calendar with ~100 events in the month view is taking 6s to render on my desktop and 20+ ...
0
votes
1answer
24 views

Value not updating automatically in angularJS with socket.io

Following is my angularJS code with socket.io which is only fetching value when I switch from a view, though I was expecting it to update the value automatically. Let me know what I am doing wrong ...
1
vote
0answers
28 views

Using angularjs to get GET and POST result

If I'm using angularjs and wanted to alter the page based on whether there's a GET request or a POST request, how would i do it? For example: //index.html ... <p>{{ message }}</p> ...
1
vote
0answers
23 views

Model in from ng-option not displaying results | Possible dynamic model?

I currently list a set of options for ng-options from a resource that contains JSON. [ { id:23, name:"Other" }, { id:24, name:"Crew" }, { id:25, ...
0
votes
0answers
14 views

Angular JS - Google Custom Search Provider

What would be the best approach to load the script and wrap the google object returned, once it has been made available by the script loader, in a angular object that can create multiple configurable ...
0
votes
0answers
7 views

Api Giphy returns error on GET response when using Angular

I'm trying to use giphyAPI There docs say they provice a public apikey dc6zaTOxFJmzC. I cannot return gifs. However, if I go to the url it returns a JSON endpoint just fine? QUESTION: - How do I ...
1
vote
1answer
25 views

How to inherit from base controller using “controller as” syntax?

Here is a snippet demonstrating how to inherit from a base controller using $controller and $scope: var app = angular.module('app', []); app.controller('MainCtrl', function($scope, ...
0
votes
1answer
22 views

How to inject state parameter automatically

Abstract Hi, I'm using angular + ui-router in my project, I have huge amount of nested states and different views that in turn contain huge amount of different inputs, a user fills these inputs ...
0
votes
1answer
21 views

Express JS not sending JSON in response to post request

I'm writing a little AngularJS app that's communicating with an ExpressJS backend for JSON. My server.js file looks like: var express = require('express'), app = express(); //Express 4 ...
0
votes
0answers
7 views

How to send formData with nervgh's Angular-File-Upload

I am using nervgh's Angular-File-Upload at https://github.com/nervgh/angular-file-upload It is working like a charm when I hard code the preOpKey. What I would like to do is to send the preOpKey ...
0
votes
1answer
33 views

Karma/Jasmine spec — Expected { } to equal { }

I'm running a Karma spec to test the functionality of an Angular BaseClass for my models that is outlined in an Egghead.io tutorial. The behavior seems to be working, but I'm running into a weird ...
1
vote
1answer
19 views

iframe video not displaying correctly

I'm trying to embed videos on my website using iframes. The videos display fine in Chrome, but in Firefox and Safari, the videos are enlarged and only a portion of it can be seen. I tried using ...
0
votes
0answers
9 views

How to add list items to this angular-carousel code?

We are trying to make a supermarket game application with angular.js. And part of the app is when the user scrolls to the left and to the right it changes aisles. We need each aisle to have three ...
3
votes
2answers
24 views

How to read module vs. vanilla JS library in angular?

I'm new to service/provider/factories modules in angular. I've been using a library called annyang for 30 mins and I wanted to find the more "angular" way of using this library. Some independent on ...
0
votes
0answers
18 views

Game with AngularJS/Phaser.io and destroy method

I am making a game with a friend and we have some problems with AngularJS and Phaser. So, we have a page named game, it has a template, a controller and a factory. There is a page who "redirect" us ...
0
votes
0answers
19 views

Tab content similar to $modal.open()

I like the way $modal.open() lets you pass in the scope, template, and controller. I would like to reuse this pattern for each of the tabs in a tabset. Is there a simple way to do this? Here is an ...
0
votes
0answers
17 views

getting 'require is not defined' when testing in angularjs with karma

I am using angulajs with browersify to build an app. To test it, I'd like to use Karma. I jave set up my conf file like this: module.exports = function(config) { config.set({ basePath: '', ...
0
votes
1answer
24 views

Ng show for settings page

I am currently working on a settings page for a planning poker app I am developing. What I would like to have happen is to have the rest of the settings only visible if "become scrum master is ...
0
votes
0answers
15 views

AngularJs: Update count(array.length) in ng-pluralize after push in that array

I have a list of groups that have children. Each item has the group description and the number of children using pluralize. groupList: <ion-item ng-repeat="item in currentList" ...
1
vote
1answer
19 views

Creating Checkbox functionality using Bootstrap Glyphicons

I have built a great set of bootstrap icons that act like radio buttons. I need to do the same thing bug with checkbox behavior allowing multiple options to be selected and stored. I can't seem to ...
0
votes
1answer
34 views

Why JQuery library of append method is not working on partial AngularJS?

This library is working fine in index file, but when I use it on a partial, it is not working. Here is my partial code: <html ng-app="firstApp"> <head> <script ...
1
vote
0answers
25 views

Good practice to build a rich model

I've just read this, explaining a way to build a rich model with Angular/Restangular. The article shows the following code, a service retrieving, through Restangular, all the proposals. ...
0
votes
0answers
13 views

How to load a pdf into a iframe based on the time stamp

I want to use ViewerJS to preview Pdf's before they are mailed. I need the iframe src to load a pdf from a folder based on the newest time stamp. Angular Controller $scope.PrintPreviewModal = ...
0
votes
1answer
17 views

Using jqueryDataTables in Angular, getting childNodes error in Controller

I'm using jqueryDataTables to sort data in tables in my app. Rather then using a script tag on the page which it needs to be on, figured I could just include it inside of my Angular Controller code ...
0
votes
1answer
15 views

Allow forward slash in ng-pattern regex.

Should be fairly straight forward. Trying to allow a forward slash in my numeric only ng-pattern for a form field (expiration date). HTML: <input type="text" id="expiration-date" ...
2
votes
2answers
36 views

Setting value in controller works, but setting value in angular expression doesn't?

The following code doesn't work - <div ng-init="selected=-1"> <ul ng-repeat="x in arr"> <li ng-click="selected = $index">...</li> </ul> When I click on one of the ...
0
votes
3answers
31 views

Saving date() in JSON with AngularJS

I'm trying to save the current date (among other data) in a JSON file in LocalStorage. So far I get to save the data, but JSON will save it in the ISO 8601 format: ...
-3
votes
0answers
9 views

Angular change from 1.3.0-rc.0 to any higher [on hold]

Well all of my forms are now all time invalid, I can't really figure out why. I looked into the code, I saw that the $error object was empty. Link to the page with the problem (it is pretty complex ...
0
votes
0answers
13 views

Testing Angular directive that draws a kendo chart

I can get my tests to work, even get the timeout portion working. I just get an error Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting! Any help would be greatly ...
0
votes
0answers
12 views

Making a Delete Request from Protractor JS

I'm trying to write a Protractor test for an angular website. Specifically I'm trying to test user registration. As part of the test, I need to delete the test user that gets created, so that the next ...
0
votes
1answer
29 views

Angular js ng-options not able to set the value

I have started playing around with angular js and here is the problem with ng-option. I have a below DOM structure, where i have used ng-option inside ng-repeat. And i'm declaring Main model in ...
0
votes
0answers
28 views

Angular DataTables directive, giving error “Cannot read propery 'mData' of undefined” but is not undefined

I am using the directive in this fiddle. In my controller I have added this: var arr = data.cases.map(function(x) { return [x.agent, x.insured_name_c, x.carrier, x.name, x.status, ...
2
votes
1answer
28 views

UI Router changing URL but not page

I'm not able to get UI Router to work properly on my page. It works fine for the navigation links, but not for the specific section I'm working on. I was able to recreate the issue in a plnkr ...
0
votes
1answer
34 views

CORS request is not allowed with AngularJS

I'm trying to access an API from an Angular JS controller using the following code: $scope.getOperators = function() { $scope.CSVData.forEach(function(entry) { $http.defaults.useXDomain = ...
0
votes
0answers
6 views

angularjs treeview control that accepts objects

Long time reader, first time poster. I am involved in converting a C# product that had the ability to display in a tree view the contents of an object using the windows forms treeview control and ...
0
votes
4answers
44 views

$http.get API in Angular JS

I'm trying to do an ng-repeat in AngularJS that pulls from the uiFaces API. This is my code at the moment. This http.get is wrapped inside my .controller: ...
0
votes
0answers
35 views

AngularJS “dot rule” with an existing JSON model

What is the recommended approach for implementing the dot notation required by Angular models when your actual model does not have them? My models are created on the server by Python/Django, the ...
0
votes
1answer
31 views

angularjs, browserify + underscore

I have something like below on my angularjs app that works with browserify + gulp. require('angular'); require('angular-resource'); require('angular-xeditable'); require('angular-spinner'); var app ...
-1
votes
0answers
22 views

best practices, images in firebase [on hold]

I am writing an app using Angular that queries records in firebase. Each record references multiple images. Question: Should I attempt to embed the images in the json records in the database (64 ...
0
votes
2answers
35 views

get html element in ng-repeat angular js

I need to get to dom element that created in ng repeat i have this code and i dont understand why i cant get the element. <div></div> <ul> <li ng-repeat="data in data""> ...
1
vote
0answers
25 views

Redirecting .htaccess from angular.js route

I'm using an angular.js app to fetch content via an external API. All works great, except for metadata and opengraph values. As we can't rewrite all metadata, we decided to use some redirection to ...
1
vote
0answers
17 views

Angular animate ng-repeat slides

I have recently been learning JavaScript and Angular around the same time and my knowledge in both is limited. I am building a music archive app in order to learn both these technologies better and ...
0
votes
0answers
21 views

Sorting data AngularJS / NodeJS / MongoDB

I have more than 25000 data in a collection so I have to optimize for the front-end. First with node JS, I did a pagination for the rest API: app.get('/api', function(req, res, next) { ...
0
votes
2answers
29 views

AngularJS: Bind angular service property to scope

Scenario I have a service UserService that maintains the (boolean) sessionStatus of the user. The view conditionally shows [LOGOUT] on ng-show=sessionStatus (i.e. if not logged in (false), no show). ...
1
vote
1answer
22 views

Scroll to bottom in chat box in angularjs

I am trying to automatically scroll to bottom whenever there is a new message. My code moves the scrollbar but it does not take it to exact bottom. Kindly help. Here is my plunker. ...