Tagged Questions
AngularJS (a.k.a. AngularJS 1) is an open-source JavaScript framework. Its goal is to augment browser-based applications with Model–View–Whatever (MV*) capability and reduce the amount of JavaScript needed to make web applications functional. These types of applications are also frequently known as ...
0
votes
0answers
5 views
md-select is not getting values from controller angular js
This is my code that does not getting options for md-select. This html is not the main page. This is my first angularjs application, I am new to angular js, please help me.
Is there anything do i ...
0
votes
0answers
3 views
how to pass the local path directory from JSP to anulgarJS
i dont how to render a local path directory and pass it as the argument in from JSP to angularJS and that argument will automatically passed to the filereader.java
0
votes
0answers
14 views
AngularJS ui-router inserts route in every page
I have two pages
http://localhost/page1 which contains ng-app="appOne" in header and ng-app="appTwo" in the body. appTwo uses ui-router to pull forms to enable a multi-step form and displays the ...
0
votes
0answers
16 views
How to use angular2 pipe filter without ngModel but a simple string instead
I've made an angular reusable pipe for filtering a list that's currently working with a input:text and ngModel ngModel tag
<input type="text" name="filterText" [(ngModel)]="filterText">
<ul&...
1
vote
1answer
18 views
Angular Ionic data binding issue
I am new to angular, and trying to build an app in ionic. I have 2 fields on screen, and I want to implement the following.
when user enters something in the price field, I want to update weight ...
0
votes
0answers
17 views
Working around CORS while waiting for server changes
I am working with an API in development. The current problem is the CORS does not appear to be configured correctly. On OPTIONS requests, server appears to expect cookie to be passed, otherwise, it ...
0
votes
3answers
17 views
Ng-show with sidenav bar
So I have been trying to work on a website and I seem to have stumbled upon an error. I'm working on a single page website with angular routing.
I'm not using bootstrap, and I would prefer to stay ...
0
votes
0answers
7 views
How to validate query result in meteor helper and redirects to 404?
First of all, I am not using Meteor in itself but Angular-Meteor, so the principles are the same. What I need to do is validate in helper function when a resource is valid or not and make a decision ...
0
votes
3answers
19 views
greeting.id is null or $scope.greeting is null
I tested the restful web service and it has data:
http://localhost:8081/PetStoreSpringRest/rest/emps
This is the data:
[{"id":1,"name":"Albert Lam","createdDate":1484969286677},{"id":2,"name":"John ...
0
votes
2answers
26 views
How do I calculate a value based on items in a filtered angularjs repeater
I'm building a scoring system and am trying to calculate a score based on values in a separate collection. I've been using this example: Calculating sum of repeated elements in AngularJS ng-repeat , ...
0
votes
1answer
17 views
Angularjs How to edit a copy of a variable object in $scope from touching the original?
I just realised that whatever changes I make with variable $scope.ratings affect also $scope.data I don't want that.
$scope.data = [ {
"0":"1",
"1":"Creativity",
...
0
votes
1answer
28 views
How to define module and config in angular app?
I am trying to setup angular app using ui-router i have an issue angular is not registering the module computerTrading. i have pasted error below.
app.js
angular.module('computerTrading', ['ui....
1
vote
1answer
27 views
Redirecting state: null is not an object (evaluating 'name')
When a user enters the state cloud, it checks if a current variable is found, and if it isn't, it redirects them to a different state. But for some reason, I get the following error on the redirect.
...
0
votes
1answer
9 views
FAILED Expected “undefined” to equal Object - Issue with $httpBackend.expectPOST in AngularJS unit test?
I recently wrote a service using AngularJS which is a series of various HTTP calls to a (mock) backend. My app seems to work well but my unit tests are broken!
So, I have this service I wrote in my ...
0
votes
1answer
14 views
Directive with isolated scope values overwrited
I have one directive that works fine if I use just once per controller. But now I have to use the same directive with different values and that is the problem... Directive 1 has an array and directive ...