0
votes
0answers
17 views

Get original transcluded content in Angular directive

Is it possible to programmatically get the original transcluded content within an Angular.js directive? Within the compile function, $transclude seems to contain the template for mydirective, and ...
1
vote
0answers
22 views

Angularjs CORS HTTP only sometimes sends Options

I realize this is a CORS issue (cross origin resource sharing), however none of the other answers on this site have actually given a real answer, only partials. JSONP Fiddle code in case it ...
0
votes
1answer
32 views

why Angular $routeProvider configuration requires an ngView declared in HTML

I have no requirement to use ngView, but I need to know the route parameters in my controller. So, I tried to inject $routeParams in my controller. However it did not work util I declared an ngView in ...
0
votes
0answers
13 views

AngularJS injecting $injector give me a instance not a reference

It seems that Angular its injecting a new instance of injector inside my service, see: services.service("Register", function($injector, Helper){ // $injector is created here when Register is call, ...
0
votes
1answer
21 views

Angular JS how to update scope variable inside another scope variable

I am bulding a list using ng-repeat from array of objects. One of the property in array is a boolean that will go in ng-show of each element I am building using this array. Array itself is a scope ...
0
votes
0answers
29 views

How to get data attributes value from child elements in angular controllers

Yesterday I start learning AngularJs online. I decided to create some useful stuffs for my new project using Angular. Below is some portion of my hard work : The HTML Part <div ...
2
votes
2answers
16 views

Writing a test for a directive that does a full page reload in Karma

I would like to unit-test a directive that redirects a user to the social login-url at the backed. since Karma doesn't support full page reloads, I would like to alter the behavior of the ...
0
votes
0answers
22 views

AngularJS 1.2 - ng-repeat conflict with animate class

I am trying to apply AngularJS to my projects so i have ended with this issue. I am using an animate class (.repeat-item) for the enter-move-leave events for the ng-repeat with following css code: ...
0
votes
0answers
25 views

how to apply style to some text content in textarea in angular

I am trying to create a spell checker for my website using bjspell .Now I want to underline words in textarea that are misspelled.Textarea by default does not support styling specific text.One ...
0
votes
1answer
32 views

Can I watch just one variable changing inside an array of objects in Angular JS?

I have the following variable: var $scope.abc = [{"a":22,"b":"x"},{"a":33,"b":"y"}]; Is it possible to do a watch on this and watch for just the value of the field a changing?
0
votes
1answer
38 views

How transferrable is code between Meteor and AngularJS?

I'm working on a fairly large web app and right now it consists of an API in Node and a Connect static server that pushes our Angular frontend. I've been absolutely fascinated with Meteor as of late ...
0
votes
1answer
15 views

how to combo box element by default as top angular js

i am not getting value in select box every time it's showing me first element place blank. i dont know why can any one tell me how to overcome this problem. i am attaching problem what exactly ...
1
vote
2answers
49 views

Angularjs ng-include not including any view

I keep trying to set my ng-include as follows: <!DOCTYPE html> <html ng-app> <head> <title>Demo</title> <script type="text/javascript" ...
0
votes
0answers
15 views

Unable to load an angularjs module in coffeescript

I try to make an AngularJS application entierly in CoffeeScript but when my main module is loading, I've got this error : Uncaught Error: [$injector:modulerr] Failed to instantiate module app due to: ...
0
votes
1answer
24 views

How to decide when to use ngView or ngInclude?

Just trying to understand the exact difference in approaches of using ngView and ngInclude in AngularJS. When would is it correct to use one over the other? Thanks.
0
votes
0answers
31 views

$scope unidefined in modal angular js

i am using modal in angular but when modal open so here values are not binding with model i don't know why this happening must be appreciates if some corrected if there is any mistake thanx. ...
0
votes
0answers
12 views

How to set default browser window size in Protractor/WebdriverJS

For some reason when I run my tests at work the browser is maximized, but when I run them at home it only opens a browser window of about 50% width. This causes some discrepancies with scrolling down, ...
-1
votes
0answers
28 views

In modal not showing my template Using angular js

i want pop up modal in my application but some how i don't why it's doing behaviour like this that whole screen showing black but template note showing . i have view in which link appear so when i am ...
0
votes
2answers
49 views

AngularJS ng-click not calling function on scope

I have a dilly of a pickle of a problem here. I have a custom directive which loads a navigation block from a webservice call. I am trying to click on one of those navigation links which I put a ...
0
votes
2answers
37 views

Angularjs - How to use module in only 1 controller

I'm learning Angularjs and I have 2 templates pages - a login.html page and an index.html page. I'm using this directive - https://github.com/pablojim/highcharts-ng to create a chart on my index.html ...
0
votes
1answer
30 views

how to fix Expected response to contain an array but got an object ANgular js

i am new one so difficult to getting this error using resource module after calling service. can any one modify my mistake in code where i am getting wrong or just modified that pieace of which needs ...
1
vote
0answers
39 views

How much object data can I store in my browser before I will notice any response time problems?

I have an Angular Single page application. One of the main functions is to be able to store and display data for around 50 different objects on the single page which is diplayed all of the time. ...
0
votes
1answer
33 views

AngularJs Table Sorting when Data is nested

How can I approach table sorting in angularjs, when my data is nested and not all columns are first level citizens of the objects. Data (excerpt) [ { "name": "Team A", ...
2
votes
2answers
43 views

AngularJS: How to bind ng-click to an SVG image inserted using embed or object element

I want to display an SVG image stored in a file and bind an angularJs ng-click function to the image. I've tried putting the ng-click binding in the object/embed element tag as well as a wrapper div ...
0
votes
0answers
13 views

ng-Grid Pagination not working - AngularJS

HTML: <div class="grid-style" data-ng-grid="groupGrid"> </div> Javascript: appRoot.controller('GroupController', function ($scope, $location, $resource, $http) { var ...
1
vote
1answer
28 views

In angularjs 1.0.8 not works PUT rest service

I have angularjs application which have CRUD Rest service. Create, Read and Delete methods works well, but PUT not works. I found on Stackoverflow and there are the same problems with accepted answers ...
6
votes
2answers
97 views

AngularJS: What is the need of the directive's link function when we already had directive's controller with scope?

I need to perform some operations on scope and the template. It seems that I can do that in either link function or the controller function ( since both have access to the scope ) When is it the case ...
-2
votes
1answer
33 views

How does the Controller function in Angular gets invoked?

this simple angular controller: var WorldCtrl = function ($scope) { $scope.population = 7000; $scope.countries = [{name: 'India', population: 121}, {name: 'China', population: 178} ]; }; And ...
-1
votes
0answers
68 views

New to angular js. Need a quick help. What is the flow

I have got this html <!DOCTYPE html> <html class="no-js" lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta charset="utf-8" ...
-2
votes
1answer
45 views

Detecting when the scrollbar is near page end

I'm working on a reverse infinite scroll, using the 2 way data binding functionality of AngularJS. It's implemented such that there is only a certain number of elements rendered to the DOM at any ...
1
vote
1answer
36 views

Store view state in URL using Angularjs

What's the general (if there is any) consensus on storing view states as part of the URL in Angularjs and how would I go about doing it? I have a fairly complex view/route with many filters to set, ...
16
votes
3answers
141 views

Why do Javascript Libraries have local references to array methods (push, slice, etc..)?

I have been reading the code of a few javascript libraries. I've noticed that AngularJS and Backbone.js both keep a local reference to array functions. e.g.: var push = [].push // or array.push ...
0
votes
2answers
34 views

Getting Text Values in ng-click

Working on an exercise from Angular in Action, I'm trying to add functionality to add a new "story". In the following code, I'm trying to create a "newStory" by adding to the stories array with a ...
-3
votes
2answers
84 views

AngularJS website sample failing to execute (version 1.2.0)

Here is the sample (from Angular official site): angular.module('project', ['ngRoute', 'firebase']). value('fbURL', 'https://angularjs-projects.firebaseio.com/'). factory('Projects', ...
0
votes
1answer
14 views

How to load form with values based on Angular $resource

I want CRUD operations so that when a user clicks on any particular item to edit this form will be filled with those values (that the user wants to edit). Here is my code . storeView.html <tr ...
0
votes
1answer
26 views

Using ng-model and ng-repeat within a directive

So I can't seem to quite figure this out. Basically, I am building a directive which consists of options, and I want to define those options in the directive, but define the default option in my ...
0
votes
0answers
32 views

how can handle ng if for previous view in angular

i am new one with angular so i have view in which link add so when i am clicking after it redirect to another page so i want if i click on add so another page show that div in which user can add ...
0
votes
2answers
34 views

Angular scope not updating

I'm having a problem getting angular to push a new series onto chartConfig.series using getCurveData(curve) and seeing the change reflected in the UI. The data does get pushed into the list (i can see ...
0
votes
2answers
22 views

Resorting a list in Angularjs breaks ng-click

I wrote a jquery plugin that allows users to use either touch or mouse (kind of like this) to resort a ul. The plugin works fine for updating the DOM but I'm not sure how to tell Angular to "update" ...
0
votes
1answer
29 views

nodejs expressjs angularjs routing

i want to redirect from an express function to an angularjs partial to load with the controller of that view. app.js -->nodejs function(req, res, next) { console.log(req.session); ...
0
votes
2answers
39 views

Passing an array in a hidden input

I'm attempting to pass an array of values in a hidden input using angular. Here is my code so far: <input type="hidden" name="drug[drug_class_ids][]" value="{{selectedDrugClassIds()}}"/> ...
0
votes
0answers
21 views

Hidden multi select in angular

I'm trying to build a custom multi select form input () so that I can send an array of items through a form. The format of the data needs to be native to rails, like: item[tags][]=1,5,7 Normally I ...
0
votes
1answer
47 views

$setPristine() method in Angular 1.2.1 doesn't appear to work as intended

I have am trying to reset a textbox using the $setPristine function in AngularJS, however it doesn't seem to result in the desired behavior. My form looks like this: <form name="addInviteForm" ...
1
vote
1answer
29 views

AngularJS + Coffeescript - 'Hello World' directive not working

I can't make the simplest of directives work in my AngularJS + Coffeescript project. I have this code in directives.coffee: 'use strict' app_name = "myApp" app = angular.module ...
-3
votes
0answers
19 views

pure javascript based spellchecker for textareas and other input controls [on hold]

I am currently looking to create a spellchecker in javascript for my angular js application.But I am struggling to find right way to do it.The spell checker needs to be in pure javascript.No php as ...
1
vote
0answers
38 views

AngularJS: Load dialog for ng-repeat with large number of items

I am trying to come up with a way to display a load dialog while the items in ng-repeat are being rendered. The use case is as follows: User clicks a toggle switch to display a list of items A ...
1
vote
1answer
42 views

Index file being returned for all requests

I'm relatively new to web development. I'm using node (with express) and angular JS. While the solution may be simple, I can't determine why the contents of every requested file (css/javascript/html) ...
0
votes
1answer
38 views

Angular wiring with controller - beginner

I'm following this tutorial : http://www.youtube.com/watch?v=i9MHigUZKEM I'm 46:32 minutes in and here is my code so far : <html data-ng-app="demoApp"> <body ...
-1
votes
1answer
20 views

Two way binding between directive/controller with watch expression

Using Angular 1.0.8 -- I can't update this. I've created a simple datepicker directive that creates three <select>s with date options. This uses an isolate scope to store the selections and ...
0
votes
1answer
44 views

How to do multiple point transclusion to parent in angular (example simpler than title)

I'm trying to implements a 'simple' tabs directive in angular. The only difference is that both the tab nav and the tab content can have html. I want my code to look like that : <home-tabs> ...

15 30 50 per page