1
vote
1answer
7 views

Angular Directive for keydown breaks other functionality

I'm trying to listen to keydown events on a formfield. To do this I've built a directive with a "keydown" attribute as follows: var keydown = function() { return { restrict: 'A', ...
0
votes
0answers
10 views

angularjs + typeahead input field initial vaule

I have this directive, which is basicly wrapper for typeahead plugin from bootstrap. Everything is working like a charm. But now I have to set initial vaule in typeahead's input field. The value is ...
1
vote
1answer
19 views

Angular data in dropdown not set the second time

I've something weird going on here with Angular. I have a details view with an edit button. When I press the edit button, I pass the object to the edit view. On the edit form there are a few dropdown ...
0
votes
0answers
23 views

Clearing out a DOM node in angularjs directive

I have the following directive. I usually don't like posting too much code so that those attempting to answer the question can focus on the important parts, but I'm not sure what I'm doing wrong here, ...
0
votes
0answers
11 views

How can I simulate blur when testing directives in angularjs?

I am trying to test some directives. First off I have an email (called epost in the code(norwegian)) directive. The directive validates email addresses in two ways; on upshift and on blur. I can test ...
0
votes
2answers
20 views

How do I set a selected option for select in Angular

I have an object $scope.colleges = [{"CollegeCode":"40","CollegeName":"College1"}, {"CollegeCode":"35","CollegeName":"College2"}, {"CollegeCode":"32","CollegeName":"College3"}, ...
0
votes
2answers
9 views

How to expand bootstrap accordion in Angular directive?

In my Angular directive I try to hide and show accordion panels. The problem is, when I access the accordion by code, the accordion breaks. For example, when I do this: ...
0
votes
1answer
9 views

Can I give an ng-form a name that I can check with $pristine?

I looked at the documentation for ng-form: http://docs.angularjs.org/api/ng.directive:ngForm But it gives me almost no examples and I am still very confused. What I would like to do is to have a ...
0
votes
2answers
31 views

ng-selected not working in select element

I have a bound select <select ng-model="collegeSelection" ng-options="c as c.CollegeName for c in colleges" ng-selected="c.CollegeName == collegeSelection.CollegeName" name="selectCollege" ...
1
vote
1answer
16 views

Angular.js setting the value of ng-show by parameter inside a directive

Sorry if the title isn't clear, here is what I'm trying to do: I have multiple signup forms and every one of them has a password field. Now, I want to set some requirements to the passwords, ie. I ...
0
votes
1answer
31 views

AngularJS: Linking to elements in a directive that uses ng-repeat

I have a simple directive where the template uses ng-repeat inside it. I need to run some code to instantiate a jquery component against some of the elements created by the ng-repeat directive. The ...
0
votes
1answer
32 views

Angularjs directive - parsing strings with spaces?

I'm creating a directive for facebook feed dialog and I'm trying to add the item title to the directive however I've noticed that angularjs throws the following error whenever {{current_hotel_title}} ...
2
votes
2answers
29 views

Parent directive controller not available?

I have a directive called <popup> that contains a number of <popup-link>-directives. When a <popup-link> is clicked, the parent <popup> directive should be closed by invoking a ...
0
votes
2answers
47 views

Angular Directive not updating

I am having an issue refreshing/updating an angular directive. Basically there is a Flag button which will make an async call to server and if it's successful, change the property userFlags which ...
1
vote
0answers
23 views

promise-tracker in AngularJS

I have problems when using promise-tracker. What I want is to track a conversation. And part of my code is following: js: angular.module('myModule', ['ajoslin.promise-tracker']) ...

1 2 3 4 5 64
15 30 50 per page