0
votes
0answers
12 views

Jasmine not catching errors within Try/Catch

I've been writing some angularjs tests using the Jasmine Framework. I'm confused by the documentation on the Jasmine site The 'toThrow' matcher is for testing if a function throws an exception ...
1
vote
1answer
16 views

Extending Angular Directive

I'd like to make a minor modification to a 3rd party directive (specifically Angular UI Bootstrap). I simply want to add to the scope of the pane directive: angular.module('ui.bootstrap.tabs', []) ...
1
vote
1answer
16 views

Angular ng-change for select not calling the declared method

I have the following html form select statement <select ng-change="setBillGroup()" ng-model="bill.groupId" class="span8" ng-options="d.id as d.name for d in groups"></select> and the js ...
1
vote
1answer
40 views

how to make a directive modify the content of another directive?

I have a set of dom elements that needs to be modified in block. In the following example the "block" directive is going to add an edit link inside of it. <div block> <div ...
0
votes
2answers
62 views

Create a empty JSON object from an existing JSON object array

I have a JSON object with two arrays of an object x. I'm using angularJS and I want to add/edit/delete objects in the JSON (just like the Angular TODO app example on angular.org). Is there a way to ...
0
votes
2answers
27 views

How to use $http and $location in directives?

I am really new to Angular, and I have a stupid question regarding using $http and $location in directives. I am creating a todo list, and want to delete an entry when I click on a link. Currently, ...
0
votes
2answers
34 views

AngularJS add conditional class in ng-repeat

I'm working with some AngularJS ng-repeat looping, but I want to generate the markup of a grid, but need to add a 'grid--last' class to the 4th item in the grid, is this achievable? My HTML: <div ...
1
vote
2answers
38 views

Routing error with angular.js and express

I am trying to do routing with angular.js around /parent root, which works if I'm using anchor links, etc (aka routing handled purely from angular. For instance, a link that has href of ...
0
votes
1answer
37 views

Creating an HTML popup form that is accessible on may websites

I want to have a HTML form that has two input textboxes and a submit button that can be places on many websites that I have. I just want to have the reference to this form in the form of javascript ...
0
votes
1answer
28 views

Overriding default behaviour for img and a with AngularJS directives

I'm currently trying to write a custom directive for <a> and <img>. I have some test code where I want to see to get the src of an image. However, the code below does not seem to fire when ...
1
vote
2answers
24 views

Jade lang in a regular web app without node

Is it possible to use Jade in a regular web app without running on Node js? The question may sound crazy as Jade engine is written in node but wanted to find out if it can can be used oustide of ...
0
votes
1answer
39 views

How can I turn this into an AngularJs Directive?

I have a select list that I am populating with ng-options. It also has a "default" selected item that kind of acts like a "placeholder" since lists don't have an actual "placeholder" attribute. ...
2
votes
2answers
66 views

How to parse date time in JavaScript

I have Date in this format mm/dd/yy example: 04/11/13 and time in the format HH:MM:SS example: 17:02:30 I have to parse above two values and put in a variable dateTime with following format ...
0
votes
1answer
22 views

Angular and CSS Transitions

I am new to Angular and I've learned quite a bit in the last few weeks, however I have several questions. So currently I have a jQuery prototype that I would like to convert to use Angular.js. For any ...
0
votes
2answers
23 views

Passing function arguments to $scope.$apply?

I'm using $scope.$apply for callbacks, specifically with Stripe. Currently I have some code like var stripeCallback = function (status, response) { if (!response.error) { // do something ...

1 2 3 4 5 155
15 30 50 per page