Tagged Questions
5
votes
1answer
79 views
AngularJS: How to correctly work with Directives, Scopes and Bindings to avoid memory leaks?
I'm trying to find a solution for an AngularJS app memory leak. Because I'm new to the AngularJS world I don't really know where to start and where to correct and optimize my code.
I'm trying to give ...
0
votes
1answer
108 views
bind data to an element on an ng-if condition angular js
I am new to angular js. and I have a situation.
I want to bind data to an input element from another input element based on a condition (checking a checkbox). I am trying to achieve this using the
...
0
votes
0answers
101 views
AngularJS - Pre-populate control data based on conditions. To use directives or not?
I have a requirement where I need to "pre-populate" fields in an AngularJS form based on some condition. Pre-populate here would mean a field has a value bound to it, and is not null (for UI purposes ...
0
votes
0answers
106 views
binding views to data changes in angular
I'm still new to angular and just trying to figure out the right way of binding views to my collection.
I'm building a calendar app, and I want it so that as the user scrolls down the page, I change ...
1
vote
1answer
3k views
Getting select rows from ng-grid?
How do I create (or access) an array of selected rows in my ng-grid?
Documentation (scroll to "Grid options")
id | default value | definition
...
0
votes
4answers
1k views
Two-way data binding does not work with directives in Angular.js
I try to implement a directive, which has to update specific code block with angular-notation {{...}}. The problem is that the updated code is not compiled anymore.
The directive:
...
2
votes
0answers
281 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
1answer
91 views
Setting $scope.items in Angular Binding
I have a service with the following function,
public object Get(AllUsers request)
{
var users = XYZ.GetAllUsers();
var userList = users.Cast<XYZ>();
return new AllUsers
{
...
7
votes
1answer
522 views
AngularJS: Two way data binding fails if element has ngModel and a custom directive
I made two directives to setup custom error messages in AngularJS:
errors -> displays the error messages for a form
error-message -> sets up a custom error message on an input
For some reason ...