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
9 views
Process maker - Login using rest api not working
Using the below script i am able to retrieve the cases related to a particular user using process makers rest api, but unable to go the home page and use the system as is (Somthing like a single sign ...
0
votes
0answers
7 views
Error TS1128 Build:Declaration or statement expected in Angular 2
I have update my dependency of asp.net core 1.0 to asp.net core 1.1.Using the nuget manager. I , have updated all the list in the upload mention in the nuget update. Now, I am getting a Error TS1128 ...
0
votes
0answers
8 views
AngularJs My Page Keep On Refreshing when i use $routeChangeStart
application.run(function($rootScope, $location, CheckLogin, User){
$rootScope.$on('$routeChangeStart', function(event, next, current){
CheckLogin.check(function(response){
if(response){
...
0
votes
0answers
4 views
Inject $modalInstance manually in controller using $injector
$scope.modalInstance = $injector.get('$modalInstance')
Error: [$injector:unpr] Unknown provider: $modalInstanceProvider <- $modalInstance
0
votes
1answer
16 views
How to access name and id from an object within another object in select option in Angularjs
[
{
"pcategorys": [
{
"name": "abc",
"id": 1,
"createdAt": null,
"updatedAt": null,
"subcategory": []
},
{
"name": "xyz",
...
0
votes
0answers
17 views
How to break in angularjs?
I'm beginner in AngularJS, especially javascript. I don't know how to break the process of $cookiStore isUndefined. Here's my app.js
angular.module('postLogin', ['ngCookies'])
.controller('...
0
votes
0answers
11 views
How do I include a div from one HTML to another using AngularJs?
I have two HTML pages. One HTML page has all divs made with specific IDs.
In another page, I am writing ng-include with a variable, which is a $scope.something in the controller. And on this
First ...
0
votes
1answer
14 views
Ui router not working?
My simple router doesnt seem to work, here is my app.js
var module = angular.module('ngFirstApp',['ui.router']);
module.config(function($stateProvider, $urlRouterProvider) {
$stateProvider....
0
votes
0answers
6 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 ...
1
vote
1answer
19 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
18 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
19 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
15 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 ...
0
votes
1answer
12 views
Display dynamic column name using angularjs for html table
I just prepared a data and want to display in html table but the problem is that every time I call the $http service it returns n number of columns. So basically what I want to display is that first ...
0
votes
1answer
14 views
Nested Associations In Angular Ng-Repeat
My application has the following associations. A :review has_many :comments, each comment has a :user that has a :username. In my angular view the following code is not displaying.
<div ng-repeat=...
0
votes
1answer
30 views
Why is this infinite $digest loop error taking place?
I cannot figure out why I am getting an infinite $digest loop error in this simple demo. I've read about these loops in the official documentation, but I don't understand why this demo triggers the ...
0
votes
0answers
10 views
Illegal traffic request from client to data service instead to front end application in Angular
This really puzzles me. I have a front end application, based on AngualarJS. It runs on IIS on Windows server 2008 R2 on DMZ network segment. Front end application sends REST calls to the data ...
0
votes
1answer
10 views
Error with odata response for angular 2 template interpolation for @ symbol
I am fetching data from an odata web api (which i do not have control over).
In the response is a standard summary of the odata return such as @odata.context and @odata.count.
I am trying to include ...
1
vote
3answers
37 views
How to clean string from word characters, Javascript
I'm trying to clean strings which has been transformed from word text but I'm stuck on removing special character '…'
By click on button "clean", script removes all dots and only one special ...
1
vote
1answer
5 views
How to use FlickityService to control the start / stop of player
I am developing a photo slideshow using the Angular Flickity directive. I can use FlickityService to call next and previous function to move the slide to the next and previous slide. But how can I ...
0
votes
3answers
19 views
How to encode URL in angularJS
I'm trying to get the data from my Rest API controller using anuglarjs http GET request. However, the params that I need to send include "." symbol which caused the URL failed. I tried to encode it ...
0
votes
1answer
18 views
Angular 1.5 Component Two Way Binding Not Working same using $ctrl
I have some products that I need show personalize with a component in my index.html. In the end I need totalize a grand Total of selected products in $scope main controller "planosVoz". But my two-way ...
0
votes
0answers
12 views
Getting form data while using ng-file-upload
I am using ng-file-upload to upload images and its title using the MEAN stack. Currently I can save the image but I am unable to fetch the data sent along.
Controller:
module.exports = function ($...
0
votes
0answers
11 views
How to pass ng-repeat object attribute to nycBreadcrumb label?
I'm using ngRouter with nycBreadcrumbs to pass a GUID to another view. The GUID is applied to the resolved URL, but not to the label attribute of the breadcrumb (where the title of the page and ...
0
votes
1answer
13 views
filter two array with ng-repeat in loop
I am facing a issue where I want to display the all keys in a table cell but the keys which are already in my db will be displayed with different background color; I tried with ng-repeat twice but it ...
0
votes
1answer
21 views
How to sort a dynamic select list in AngularJS
I have a page in an AngularJS single page application that displays data from multiple tables in my database by reading metadata about the table structure. When a field is a lookup to a foreign key ...
0
votes
1answer
16 views
Angular controllers and directives getting values from controller into directive
I have a directive in my angular website that builds a page header, in that page header I am wanting to show the user's first and last name. I am wrapping my entire application in a MainController. My ...
-2
votes
1answer
19 views
Angular: Disable button on click after required fields are filled in the form
I need to disable the submit button after clicking on the button to prevent multiple submissions but before the it has to ensure that the required fields are filled.
I tried
<body ng-app="...
0
votes
0answers
5 views
Angular app as an iframe, content not scrollable unless I resize the browser window. How to fix?
I have angular app that i am embedding on a a site with an iframe. The angular app renders a bunch of content when it loads but I can't scroll to it. It's there when I use the Chrome Inspect tool. But ...
1
vote
1answer
13 views
How to return file from same directory on different URL in Spring boot?
I have simple AngularJS single page application and Spring Boot for back end. I need to return index.html on different URLs. I created this kind of controller:
@Controller
public class ...
0
votes
0answers
24 views
split the text in td and display in newline
Example ==> plunkr
What I did: From the above, I am passing the below text in the table -- td(logs).
What Needed: Need to split the text ends with \". And display on a new line.
"\"Lorem ipsum ...
0
votes
1answer
10 views
Variable 'pathname' Issue with ngRoute
I've been searching the forum for an issue similar to mine but haven't had any luck. However I have found a solution I'm going to share.
My problem was when I want to change my route it doesn't ...
0
votes
1answer
21 views
AngularJs http post cant reach the local folder
HTML
<input type="file" file-model="image" multiple/>
<button type="submit" class="btn-sm" ng-click="uploadFile()">Upload</button>
In the html, i have an input like this.
JS
app....
1
vote
1answer
17 views
Editng Table Rows by row index
I am a beginner and i want to know how to edit a table row by using the index of the item to be edited. Is it also possible for me to use jquery to get the index of the item on the row because i am ...
0
votes
0answers
6 views
How can a TalkBack user access popover menu items in Ionic?
I have an Ionic 1 app that I am trying to make accessible using TalkBack. The popover element is not getting focus and the menu items are not selectable. Here is the relevant snippet from my js file:
...
1
vote
3answers
24 views
Script static fallback content for Angular $http request
I've built a basic Angular app that successfully displays the results of an HTTP GET request.
I'd like to include fallback code that displays two static HTML elements in place of the remote content ...
-1
votes
1answer
27 views
Why it appears Cannot GET /books when I refresh the page or submit [duplicate]
I'm learning MEAN stack and I have a problem, I can visit the index without problem, when I visit the page books or something else, it shows without problem but when I reload these pages, it appears ...
-1
votes
0answers
5 views
angular-tooltips custom directive not working in ng-disabled condition
This is mycode this is not working in ng-disabled condition . In ng-disabled it is showing[object object] in tooltips it is not able to get element by id..
controllerModuleAPP.directive("ngModel", ...
0
votes
1answer
16 views
Map Object in .run block breaks my unit test: ReferenceError: Can't find variable in app/scripts/app.js
I set up a mock backend in my AngularJS app using ngMockE2E as I am waiting for an API. In my .run block I declare my various $httpBackend.whenGET and $httpBackend.whenPost methods and I have a ...
0
votes
1answer
19 views
Angular 2 and Laravel 5.3 API call error on POST Request is empty on controller
I am building a api service using laravel 5.3 and a client in angular 2. When I try to submit a login form as JSON data, in the login controller (Laravel) the request data array is empty []. I tested ...
0
votes
1answer
25 views
bind date input to GET url param in Angular
I am trying to bind "date.datefrom" and "date.dateto" from my datepicker to the end of my $http GET URL.
I can't seem to it, everything I try comes back as "undefined" but I've got my $scope in the ...