Tagged Questions
0
votes
0answers
7 views
How to get global scope of page when route changes
I have template (that is not defined by router), where I have 2 links (anchors), which changes variable
<a ng-href="#/service/service1"
ng-click="activeService='minecraft'">
And then I ...
0
votes
1answer
12 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
...
1
vote
1answer
21 views
AngularJS: pushing new data to $scope.myList, top
What is the right to add new content to $scope.myList = [], when I want to manipulate the DOM?
I've tried $scope.myList.push(data);, which adds the new data at the end, and therefore in the end of ...
0
votes
1answer
13 views
How to use Twitter typehead.js with Angular compile function?
I am trying to use Twitter's typeahead.js (not the Bootstrap one) along with AngularJS. I can get it all up and running just fine, until I try to get fancy use the custom template and engine options.
...
0
votes
0answers
17 views
AngularJS: Directive scope conflicting with controllers scope
I'm working on a project with AngularJS where I have an issue with 2 scopes conflicting:
- I have controllers defining scopes in different places of my DOM (it works great)
- I just added 3 directives ...
1
vote
2answers
18 views
Access Parent Scope in Transcluded Directive
I would like to access a parent directive's scope, but I can't seem to get the right combination of settings. Is this possible and is it the right approach?
I really want to avoid putting something ...
1
vote
2answers
33 views
How to prevent that a scope is shared among directives n Angular?
All my directives use the sam scope and I want my directives to operate by their own.
Directive:
app.directive('headerSort', function () {
return {
restrict: 'A',
controller: ...
2
votes
1answer
39 views
Angular directives don't work with selects
I can't seem to get selects working with Angular directives! I have two selects, both inside a directive. I would like for the first select to determine the available options for the second select.
...
0
votes
0answers
21 views
$scope refuses to update view
Anyone had any issues with another controller affecting the visibility of scope variables from another controller?
I have two controllers and when I disable one the other scope variables show up but ...
1
vote
3answers
45 views
Is it Possible to Update Parent Scope from Angular Directive with scope: true?
I have a need for inheriting scope from a parent controller in a directive. I don't necessarily want to leave scope: false. I also don't necessarily want to use an isolated scope, because it ...
0
votes
0answers
29 views
angular.js scope variable is updating but view is not
i am using angular.js with rails as my backend and i am encountering problem while updating the value of a scope variable inside the view. here i am trying to create a shopping cart kind of a thing.
...
0
votes
1answer
22 views
Parse scope variable name to scope function?
I have a dropdown menu and the clickable element that toggles the dropdown. When the user clicks on a list item in the dropdown menu I want to add that value to the input boxes value.
The dropdown ...
0
votes
1answer
35 views
How to implement ng-model binding on this getter/setter scenario?
I have an object exposing 2 properties (say foo and bar) via getters/setters in the form of method([value]), so you can get their value by calling method() and you can set their value by calling ...
0
votes
2answers
1k views
ng-repeat list in Angular is not updated when a model element is spliced from the model array
First of all, live example con be found here
Hi everybody, I have two controllers and share data between them with an app.factory function.
The first controller adds a widget in the model array ...
5
votes
3answers
529 views
angular-bootstrap (tabs): data binding works only one-way
I prepared a little fiddle and boiled it down to the minimum:
http://jsfiddle.net/lpeterse/NdhjD/4/
<script type="text/javascript">
angular.module('app', ['ui.bootstrap']);
function ...