In AngularJS, a scope is an object that refers to the application model. It is an execution context for expressions.
1
vote
0answers
35 views
how can I exclude an element from an Angular scope?
I'm building a site that generates graphs using d3+Raphael from AJAX-fetched data. this results in a LOT of SVG or VML elements in the DOM, depending on what type of chart the user chooses to render ...
1
vote
0answers
32 views
Decorator for Scope
Is it possible, and if so how, to decorate $scope so all scopes have some extra function / property?
I'm trying to do this:
$provide.decorator('$scope', function($scope)
{
$scope.cakes = true;
...
1
vote
0answers
178 views
How to validate dynamic form fields in angular directive?
I would like to create form with fields created in directive. Data binding of data working correctly but validation doesn't work.
this is html:
<body ng-controller="MainCtrl">
...
0
votes
0answers
7 views
ng-init in angularjs is very confusing to me
I have divided my html up into sections that I reuses with ng-include. Some of the included parts expect use a $scope variable. Despite the fact that I set the $scope variable with ng-init the ...
0
votes
0answers
10 views
ng-init + ng-controller: strange behavior in the controller's scope
I'm new to Angular but really enjoying its approach. I have an HTML file where I am initializing a variable with ng-init in a <div> element, where I'm also declaring a controller with the ...
0
votes
0answers
25 views
AngularJS Select/Options scope breaking calculator
I have a calculator built in AngularJS and all fields work great, except the Select/Options field is making the result not work. Here's the fiddle: http://jsfiddle.net/itamark/4kkCa/
When I try to ...
0
votes
0answers
44 views
AngularJS directive - grouping <td> elements
I want to do a directive which appends "grouped" <td> elements based on array in controller,
I try do it like so:
App.directive("discount", ['$compile', ($compile) ->
restrict: 'A'
scope:
...
0
votes
0answers
61 views
mouseover event Angular JS access attributes
I have the following directive
courseApp.directive("courseoverview", function() {
function link(scope, element, attrs) {
scope.switched = false;
//hover handler
...
0
votes
0answers
37 views
Share data between controllers using permalinks?
I would like to share data between controllers using permalinks, rather than signals or factories.
Given a single page application, with three controllers (Ctrl1, Ctrl2, Ctrl3), and a predefined ...
0
votes
0answers
25 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 ...
0
votes
0answers
66 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
0answers
56 views
Angularjs performance
I have a project that needs a good performance with a large number of records showed.
My data structure:
SERVERS (+- 15 per page)
WEBSITES (+- 20 per server)
USERS logged in with your STATUS (+- ...
0
votes
0answers
46 views
dynamic directive compile passing the right scope
I have dynamic directive which compiles any given directive, the problem is on compile function i need to provide a right scope to it, Jus thinking how to do this?
example of my directive below, ...
0
votes
0answers
82 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
0answers
166 views
AngularJs - RequireJs - Access controller from module on ng-click
I am new to both Require and Angular. My question is how to access a controller on ng-click if the controller is hosted in a module. In My case I have to following files:
-- This is controller ...