0
votes
0answers
12 views

Angular constructing a complex domain model

I am new to angular JS, apologies if this question sound very basic, But i have a XML xsd model like below. public class Client { private String name; //A client can have n number of ...
0
votes
1answer
16 views

Separate toggle div in angularjs

Here is the fiddle: http://jsfiddle.net/yFyxL/2/ angular.module("myApp", []) // .controller('MainController', function($scope) { $scope.toggle1 = function() { ...
0
votes
1answer
13 views

How to insert $compile'd HTML code inside the directive without getting $digest recursion error?

I have a directive that, depending on the ng-repeat item data (from the database), build custom HTML with a switch case: app.directive('steps', function($compile){ return { 'restrict': 'A', ...
0
votes
1answer
18 views

Angular slider custom callback on slide

I'm beginning with Angular.js directives, and in any application, I'm using jQuery UI sliders. What I would to do is to execute a custom callback on the slide event of these sliders, depending of the ...
2
votes
1answer
32 views

dynamically adding directives in ng-repeat

I am trying to dynamically add different directives in an ng-repeat however the output is not being interpreted as directives. I've added a simple example here: ...
0
votes
1answer
19 views

AngularJS child directives linking function firing multiple times for each parent directive on page

I'm trying to wrap my head around angularjs directives. I have a parent directive, with 4 instances of it on my page. One of the parent directives contains an instance of the CHILD directive. The ...
0
votes
0answers
21 views

Angular load json file dynamically onclick

I have a simple page that displays a list of items. Data is pulled from a JSON file (URL is provided by the server). Two tabs allow to display (onclick) the "most recent" items or the "popular" items ...
0
votes
0answers
21 views

Angular directives: how to catch events of a nested directive's elements?

i'm trying to build a directive for a pane-splitter. Simple: pane, divider, pane. The divider is a div that is created by the directive, and it catches the drag and drop events. Now, basically, it ...
0
votes
2answers
60 views

Validation messages into Directive - AngularJS

I'm trying do a small reusable component in AngularJS using directives. I have made good progress but I have a problem with the validations. For example the required validation not working. I think is ...
0
votes
0answers
22 views

How do you prefix a URL route with a dynamic $scope value after being called?

I am trying to prefix my users' usernames to the routes they call within my application after they've logged in. How would I achieve this in angular? I already tried using the $locationProvider and ...
0
votes
1answer
9 views

How to create in angular simple independent grid directive fully configured in controller?

I need to create independent grid directive in angular. Data and actions will be set in controller. Action can refer to other controllers or other action in parent controller. Both are possible.
0
votes
1answer
17 views

How to pass ng-click executable action (&) in variable into directive?

HTML view with directive: <div click aaa="aaa()" action="action"></div> Controller: I like to pass function bbb() in $scope.action: app.controller('MainCtrl', function($scope) { ...
0
votes
1answer
32 views

$http request in Angular 1.1.4

I have a list where you can pull down to refresh. This event is fired inside a directive that handles the detection of the pullable list, the element looks like this. <div class="pull-to-refresh" ...
0
votes
1answer
28 views

How to get externally changed value of select into angular model

I am creating a directive that is using this timezone picker jQuery plugin, so that we have a timezone picker "widget" throughout our app. The problem I'm running into is that when you select a ...
2
votes
0answers
24 views

Watch for filtering event in AngularJS - lazy loading images

I would like to watch for the filtering event from within my directive when filtering on ngRepeat occurs. Is there an event that gets emitted when filtering occurs? What I am doing is implementing ...
1
vote
2answers
48 views

How do I prerender variable in angular directive for ng-repeat?

I try to create reusable directive something like grid. I want to define data and actions (edit, delete,...) in controller. app.controller('MainCtrl', function($scope) { $scope.data = [ ...
1
vote
1answer
37 views

How do I pass an array into a directive without it turning into a string?

Righty, so I'm just getting into directives and they seem pretty awesome. I ran into a problem though: I need to pass an array of images into a directive so I can filter them by certain criteria. ...
0
votes
0answers
23 views

Angular Binding, Searching

I took this example : http://jsfiddle.net/SAWsA/11/ and modified it a bit to my requirements. Basically made it to get data from server, i added watch, so the rest of the code could only run, when the ...
0
votes
1answer
41 views

What is the best practice to pass parameters from Controller to a directive?

I'm new i Angular.js In my angular app, I have an directive and one controller. I need that my controller send in options of any kinds of configurations, including callback methods. My directive is ...
0
votes
1answer
34 views

angular.js boradcast error: $rootScope.broadcast is not a function

I am adding items dynamically to an array of items and would like to let a directive know that there are new items. So inside the controller function addItem() I am trying to do the following: ...
0
votes
0answers
31 views

How to bind AngularJS Calendar to a REST resource using MVP

I’m failing to implement the binding between my REST resource and the AngluarJS calendar control. It seems that I’m missing something or just don’t get it logically since all components are working as ...
0
votes
2answers
24 views

Directive binding with AngularJS

I've created a custom directive in AngularJS. In the link function I'm adding the ng-model and ng-options attributes to the inner template, but, unfortunately the binding doesn't work. But when I ...
0
votes
1answer
31 views

Is there a way to create custom animation events with AngularJS

Is there a way to create a custom animation event with angularJS. I am trying to create my own event of trigger an event on my own. I'd like to do the following <div ng-animate="{myEvent: ...
0
votes
0answers
34 views

angularjs directive for inner html element not working

I am using angular directive for implementing iScroll in my app. <div id="videolist" > ------------ ------ <div id="videoReviewsWrap" > <ul ...
2
votes
0answers
25 views

iScroll in angularjs directive

I am trying to implement horizontal iScroll using angular directive. Here is my directive code. link: function(scope, elem, attrs) { scope.winWidth = window.innerWidth; ...
0
votes
0answers
13 views

Binding Elements in Angular when using Xlink specifications

I have a page which starts with Raw XML and using Angular Directives and CSS to transform that Raw XML into a webpage with editable fields, buttons, and labels. Since a piece of the data is ...
0
votes
2answers
81 views

How do I implement the bootstrap navbar active class with Angular JS

If I have a navbar in bootstrap with the items Home | About | Contact How do I set the active class for each menu item when they are active? That is, how can I set class="active" when the angular ...
1
vote
1answer
29 views

angularjs : setting class attribute in a directive template

I'm trying to set the class attribute of my directive. That's how I do it: the relevant code in the directive template: '<input class="myClass" />' scope:{ myClass = '@' } and that's how I ...
0
votes
1answer
91 views

nested complex directive doesn't get executed?

I tried to follow this youtube tutorial by John Lindquist where he explains directives by categorizing them into components and containers. So I tried to do so, to have a container (slide) that will ...
2
votes
1answer
41 views

AngularJS what does locals in directive stand for

AFAIK this is not documented, but I found in angular source a locals attribute in a directive example: angular.module('transclude', []) .directive('pane', function(){ return { ...

1 2 3 4 5 16
15 30 50 per page