0
votes
1answer
21 views

How to implement bold unbold functionality with AngularJS

I am trying to implement some client side text formatting functionality. Just like any other editor does. Basically when the user selects text and clicks on bold, it should bold the text and when ...
1
vote
1answer
31 views

Dynamic ng-model for directive re-use

I have a page with one controller and three tabs, each tab shows its own ng-grid and a text box for filtering the visible rows (not the built-in filterbox). I created this simple directive for the ...
0
votes
2answers
27 views

angular ng-repeat with condition

How do you do something like this in angular with ng-repeat? I'll be using the example from the documentation which inits an array with 2 friends, what if I wanted to only do a repeat for all friends ...
2
votes
1answer
42 views

AngularJS directive - setting order for multiple directive elements (not priority for directives, but priority for the elements)

Considering this markup with a directive "foo": <div foo run="3"></div> <div foo run="1"></div> <div foo run="2"></div> What is a good approach for causing "foo" ...
1
vote
2answers
19 views

Adding & Removing additional class on my element tag

I'm learning Angular.js and at first glimpse I thought it was easy. :P. But I'm stuck here. What I want is to add another class on my <.a>(anchor) tag. My HTML Code: <a href="#/services" ...
0
votes
2answers
22 views

PrettyCheckbox directive for angular app seems to have opposite value

I'm trying to use the prettyCheckbox plugin to apply styling to my checkboxes. For those of you who don't know the plugin works the way that it hides the original checkbox and displays another styled ...
0
votes
0answers
15 views

AngularJS, scope, directives services, controllers?

ok heres my conundrum, I have two modules loading on one html page the first module loads a list of dates giving the element a AngularJs properties of celldata with a child property of date among ...
0
votes
1answer
17 views

AngularJS - What's the best way to implement a “picture-in-picture” view within my stated app?

So I'm using AngularUI Router within one of my projects which needs to somehow implement a "picture-in-picture" feature... Below is a contrived example: In the "List View", you can select one of ...
0
votes
0answers
23 views

AngularJS - Share ngModel with nested directives and transcluded directives

I am trying to create 3 directives: .directive('dirOne', function () { return { restrict: 'E', transclude: true, replace: true, controller: function ($scope, ...
0
votes
1answer
18 views

Reducing the number of series plotted gives console error

I'm using Dygraphs in an AngularJS application to show time series plots of data from a data-logger. Angular handles retrieving new data and updating the graph series when the data arrives, and ...
0
votes
1answer
20 views

How can one clear the date on AngularStrap's (Bootstrap) bs-datepicker?

Referring to this directive for AngularJS, which wraps Bootstrap's datepicker: http://mgcrea.github.io/angular-strap/#/datepicker I'm unable to find a way to clear the control programmatically once ...
1
vote
0answers
24 views

AngularJS : Directive : Animate sliding pages and postpone controller binding

I'm trying to figure out how to postpone the default controller binding and only apply it from within the directive, once the specific animation (custom - not the angularjs one) has been performed on ...
1
vote
0answers
25 views

Displaying different content within a single view based on the user's role

Let's assume that we have a menu within my angular SPA application, now I want the basic options to be displayed to all of the users, such as home, about us, carrier opportunities etc. I would also ...
0
votes
1answer
23 views

nested function variables AngularJS?

Ok I have the folowwing: function getRate(source, $scope, e) { var dateValue = $("Date", source).text() || ""; if (!dateValue) { ...
3
votes
0answers
50 views

Update model from directive from $apply or $digest cycle in AngularJS

I try update model from directive and have some trouble when $apply or $digest already in progress. And I have some questions: Why scope[attrs.ngModel] is exist, but ngModel.$modelValue isn't exist ...

1 2 3 4 5 76
15 30 50 per page