0
votes
2answers
28 views

Angular animations without ng-animate, possible?

For some circumstances I use angular's version 1.0.6. And there's no amazing built-in ng-animate... My question is - do you have some examples of page transitions with custom directives? In my case, ...
2
votes
1answer
32 views

ngif and ngswitch angularjs

What's practical difference between ngif and ngswitch. Both manipulate the DOM, ngswitch is more verbose. Is it just a case of use ngif unless you need something really big in which case use ngswitch. ...
0
votes
1answer
29 views

What is the angular way of binding a directive inside another directive?

I am writing a directive which will be used to establish client and server-side validation on an input. It should accept an array of validator names (e.g. aa-validate="required,unique"), loop through ...
1
vote
0answers
32 views

angularjs directive - element.html() breaks transclusion

Reference plunker If I call element.html() in my link function, the transcluded elements no longer compile. That really says it all, and the plunker will demonstrate, but here's the code: ...
0
votes
2answers
30 views

AngularJS: Insert template after element and trigger show on click

I've created this Plnkr to show what I've started: http://plnkr.co/edit/LzcbPMqqiQbFjVzw4kDO?p=preview Two questions: How do get angular to leave the original button in place and insert the ...
0
votes
3answers
35 views

How to decompose a page in several view with Angular JS?

How does any body know how to divide a single html page in different view with angular.js. I have this working : <!doctype html> <html lang="en" ng-app="phonecat"> <head> .... ...
0
votes
0answers
16 views

Unit testing an AngularJS directive which uses scrollposition

I have a directive which listens to the scroll event, and then adds a class (to make it stick to the top). My question is how I can test this behaviour? Should I mock $window, or is there a better ...
2
votes
1answer
52 views

Do not render element if there is no data

I am using angular ng-hide directive to hide some markup if there is no data to show: <li class="header" ng-hide = " todayRecents.length === 0 ">today</li> now all ng-hide does is put ...
0
votes
1answer
16 views

Remove a directive from module in Angular

We are trying to figure out if there is a way to remove/replace/override a set of directives temporarily whilst in a 'preview' mode. We have tried removing the module(s) that the directives are ...
0
votes
2answers
25 views

AngularJS isolated directive with ng-repeat breaks transclusion scope

I'd really appreciate some understanding of this scoping issue I encountered while developing a transcluded isolated directive, one where the transclusion is repeated inside the template. I promise ...
2
votes
2answers
39 views

how to create an angular datepicker directive that uses ng-model

I have created an angular directive for my jQuery UI datepicker. The problem is that the directive doesn't update the input's ng-model when a date is selected. Any idea why? ...
2
votes
0answers
23 views

How do a build a custom ng-view directive, possibly using ng-includes?

I am creating an app that has a detail view that appears as a modal window above a main view. Each has a URL, but if detail view is accessed from the URL directly I want it to be presented as the main ...
2
votes
1answer
35 views

Why are ng-href/ng-src implemented by using attr.$observe instead of scope.$watch?

Having read Difference Between Observers and Watchers, and the implementation of ng-href/ng-src: link: function(scope, element, attr) { attr.$observe(normalized, function(value) { if (!value) ...
1
vote
1answer
25 views

AngularJS Custom Directive Argument with Spaces

I've got a custom directive used to standardize date inputs and format them to match my (somewhat strange) API requirements. The tag used to invoke it is as follows: <date-input ...
0
votes
1answer
26 views

Dynamically Generate Custom Directive within ng-repeat

I have a set of custom chart directives such as <div class='ico-graph'/>, and I'm trying to generate a stack of them based on config contained in icograph consisting of directive name, data and ...

1 2 3 4 5 40
15 30 50 per page