Tagged Questions
AngularJS is an open-source JavaScript framework. Its goal is to augment browser-based applications with Model–View–Controller (MVC) capability, reduce the amount of JavaScript needed to make web applications functional. These type of apps are also known as Single-Page Applications.
0
votes
0answers
2 views
Creating a custom <img> input element with AngularJS
I am creating a form with a number of blank image thumbnails, where the user can drag and drop images from the page onto the blanks to fill in the form.
Is it possible to create a custom angular ...
0
votes
0answers
2 views
Calling $observe inside link function not working
link: function (scope, element, attrs) {
attrs.$observe('attributeName', function (x) {
scope.setAttrName(x); // value of x is {{f.AttributeName}}
});
...
0
votes
0answers
2 views
angular delete promise then load only works on localhost
I cannot figure out which part of my code is the problem.
I have a service with a delete function (http delete), a load function (http get).
I have a delete button that tie to each row in the grid.
...
0
votes
2answers
10 views
AngularJS Inject Fallback
I have a situation where sometimes I have locals passed into the controller and sometimes not.
What I'd like to be able to do is if the "locals" are not available, not throw exception and instead ...
1
vote
3answers
14 views
console.log in AngularJS executing after scope function
I am new to Angular JS and I have a basic Angular App that simply sets up a scope object, sets up a few functions to initialize/create the scope object. When I use a console.log within my function it ...
0
votes
2answers
13 views
Using ng-repeat and limitTo to limit the number of visible items displayed
I'm trying to limit my result sets to a fixed number. I can use limitTo with ng-repeat, but this limits items regardless of their current visibility and removes items from the DOM. I want to limit to ...
0
votes
1answer
11 views
AngularJS directive controller resolve interpolated attributes?
I just think the way I'm doing this sucks, and I'd like to know if there is a better way?
Here's the directive:
<myDirective myAttribute="{{val}}"></myDirective>
Here's the directive's ...
0
votes
1answer
17 views
AngularJS: anchor tag toggle causing the page to jump to the top
I'm fairly new to AngularJS, and I'm building a web app that's split between two templates — a side menu template, and a content template. The side menu is used for scrolling to different positions on ...
1
vote
1answer
23 views
Long $compile duration, understanding the nature of the delay in AngularJs
I have a problem which I have recently found myself obsessed with, see, I extreamly Now need you to show me the way of working the problem out.
My business task was to create a list of posts with ...
0
votes
2answers
19 views
Angular directive with $watch to set field error on specific value
I have a field that I want to fail validation if the value is not an integer. there is another field that can update the value of this field so I need to write a directive that will watch the field ...
0
votes
1answer
15 views
How to select option in drop down protractorjs e2e tests
I am trying to select an option from a drop down for the angular e2e tests using protractor.
Here is the code snippet of the select option:
<select id="locregion" class="create_select ng-pristine ...
1
vote
3answers
14 views
In Angular, is there a way to prevent flicker in expressions that contain concatenated values?
Is there a way to prevent flicker for templates that contain concatenated values such as {{person.LastName+ ", " + person.FirstName}}?
I don't want to see the "," until $scope.person is bound.
Is ...
1
vote
1answer
11 views
angularjs ng-disabled doesn't add disabled to button
I have an input button that I want to set to disabled if a user selects a certain value from a select box:
Select menu:
<select id="jobstatus" name="jobstatus" ng-model="associate.JobStatus" ...
0
votes
1answer
38 views
Select input changes do not effect on model state
А declare 3 select inputs with hierarchical data to be selected:
<select data-ng-model="current.manufacturer" data-ng-options="c.name for c in manufactures"></select>
<select ...
0
votes
0answers
18 views
Setting location based on previous parameter of $routeChangeError with AngularJS
I'm listening on events of the type $routeChangeError in a run block of my application.
$rootScope.$on("$routeChangeError", function (event, current, previous, rejection) {
if (!!previous) {
...