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
1answer
7 views
Angular directives, only one works per page
I have little problem with my angularJS directive, i want to display 2 photos in different way by using other html codes, but here comes a problem, that only one directive can works per page, the ...
0
votes
0answers
6 views
html5mode in Angularjs is rewritting my query string
As you are aware that Angular rewrites the url and hence I have given the following code to take care
angular
.module('ngDocument')
.config(configState);
function configState($locationProvider) {
...
0
votes
0answers
3 views
google.visualization is undefined while refreshing the page
I used google charts + angular js to draw my reports. It always works well if I click the link to get the report, however, if I refresh the page, it always show error: google.visualization is ...
0
votes
0answers
5 views
How to assign snap.val() to the global variable?
I want to assign snap.val() to this.Productslike this.Products= snap.val(); but this.Productsis undefined in that scope.
Products: FirebaseListObservable<any>;
constructor(){
}
...
0
votes
0answers
4 views
ui-router, how to refresh state if resolve fails
I have the following resolve functions in a route called 'payments`:
PaymentAdvice(PaymentsService) {
'ngInject';
return PaymentsService.getPaymentAdvice();
...
0
votes
2answers
12 views
Weird URL ending with AngularJS routing
I just noticed that for some reason, I get this:
http://localhost/ReportsWeb/#!/
instead of this: http://localhost/ReportsWeb/#/
exclamation sign is added... why, any ideas, cant figure the reason ...
0
votes
0answers
8 views
Clear ng-table Sorting on Third Click
How can you clear ng-table sorting on the third click? For example, your first click makes the table sort descending, second ascending, and the third goes back to descending.
I've looked through the ...
1
vote
0answers
3 views
Re-using provider functionality from angular ui-router resolve
I have an angular app where I have created a provider that I use for getting the user and authorization. In my app.config I setup routes with ui-router. For the first route I am using the resolve ...
0
votes
2answers
10 views
angularJS attribute based directive - pass isolated scope
I have written directives before that have an isolated scope but they are element directives
If i write a directive that is attribute based, how can i pass the isolated scope to it?
Thanks
0
votes
1answer
13 views
Displaying one directive with multiple view options in angular
I have two modules wrapped inside of directives called 'bci-directive' and 'bcd-directive' that I use to display data inside of a primary module called 'core'. I am trying to give users a way to view ...
0
votes
1answer
9 views
re-render HTML angular js
I was wondering if it is at all possible re-render a specific element on a html page or the entire page itself whilst still keeping the controller the same.
Thanks for any help.
0
votes
2answers
7 views
How to call a rootscope fuction in html - Angular Js
i have made a rootscope function in which I am actually logging out the user. But I dont know how to call it in a view .
My functions is
$rootScope.logout = function () {
$cookies....
0
votes
0answers
10 views
Send blob from angular to nodejs server
On my client, i'm sending photos directly to an s3 bucket. But, first, i'm converting base64 to a blob.
Now, I'm wanting to share the photo to twitter, which states that it needs binary or base 64 ...
0
votes
0answers
8 views
import/export issue of angularjs constants
I am using common js module system in my angularjs 1.x application and struggling with importing/exporting constants. This is what I have.
index.js
'use strict';
var angular = require('angular'); ...
0
votes
0answers
31 views
500 Internal Server Error for Store Method
I am gettin an null reference exception inside the AssessmentController on the line:
return await Store.GetAssessmentSearchDTO();
The error in the console reads:
POST http://localhost:55471/api/...
0
votes
0answers
10 views
passportjs and angularjs routing error
I have a really big problem that i don't know how to solve, I trying to implement login authentication using passportJS in MEAN project.
When I'm trying to implement the login - I get this error again ...
0
votes
0answers
9 views
How to create an Overlay that will time out until data is retrieved
Problem: I can create an overlay as you an see below. However, I am having a hard time to add animation where the periods in the loading fade one by one and come back. The second problem I am having ...
0
votes
1answer
23 views
Angular.JS ng-Repeat in directive runs twice
https://plnkr.co/edit/WzLez5XElbOHRTvXEJFc?p=preview
function DirectiveController($scope, $element)
{
$scope.Array = ["a", "b"];
$scope.me = function() {
console.log("i ran");
};...
0
votes
1answer
13 views
AngularJS - Insert ng-repeat into another one between two TR
My question is - I think - pretty simple.
I have a table, a classic one. In this table, I want to display values of two arrays named networks and channels.
Each network in networks could contain ...
0
votes
0answers
8 views
Angular Material 2 Can't Suppress Required Asterisk
I'm struggling to suppress the asterisk on placeholder for required input and select fields in an angular material 2 form. Here is the html:
<form class="project-info-container">
<h3 ...
0
votes
1answer
13 views
Identifying the elements when extracting texts from two labels using protractor and angular js
My application has the structure below:
<ul ng-repeat="variable in link.variables" ng-show="SearchboxCtrl.showData" class="ng-scope">
<li class="ng-binding"> Member Since: </li>
...
0
votes
1answer
22 views
Angular $http response returns null when print in console but successfully requested
I have a local webservice developed with Spring, everything works fine (using browser or Postman), but when I try a simple GET method with Angular/Ionic it returns null in the response.
But when I ...
0
votes
1answer
27 views
AngularJs promise returns undefined
I'm trying to use the login function of my AuthService factory from my AuthLoginController controller. The problem is that when the User.login function is executed with a wrong email and password, the ...
0
votes
0answers
6 views
Angular2 reactive cross field validation with shared formcontrol
I tried many ways to implement the use case, but none of solutions success.
What I am trying to achieve is (using reactive forms in angular2) a form with two cross field validations:
Validation of ...
0
votes
1answer
19 views
AngularJs TypeError: $scope.todos.push is not a function
I am trying to use the $http.get method to add a todo from my controller to my DB. But I am getting the error "TypeError: $scope.todos.push is not a function". I have looked at many similar questions ...
0
votes
2answers
12 views
dropdown 2 Giving specific value from json based on dropdown1
I have 2 dropdown lists and this is my json that should fill those drops:
$scope.categorias = [
{nome:"Blusa", tamanhos:["36","38","40","42","44","46","48","50"]},
{nome:"Camisa", tamanhos:["...
-4
votes
0answers
13 views
Time needed to code Intercom.io Events [on hold]
I have installed Intercom Engage and my next step is to have my developer install the JS code to track events. The website is built with AngularJS. I was thinking about tracking 5-6 events. I ...
0
votes
1answer
19 views
disable the dates based on the date selected in the first datepicker field
I am working on angularjs application. User can select date from the From Date picker and To Date picker fields.
I want to disable the date selection in the To Date picker based on the date user ...
-1
votes
1answer
12 views
Unit testing for UI validation
Imagine a very simple Angular form with two input fields bound to two scope variables and a submit button which calls a controller function as to send the input data in the database.
My question is ...
0
votes
0answers
23 views
Playing videos in Flask Desktop application
I am writing a desktop application using Flask and AngularJS. Based on user input, I need flask to return an html template (which contains a element).
Videos will be stored on the local hard drive ...
-2
votes
0answers
20 views
How to Make Sure Scripts Don't Load Twice in AngularJS
I'm trying to devise a way of making sure that my scripts don't load a resource it already has. If at all possible I would like to do this in module.js which loads the template and controllers setup ...
0
votes
0answers
6 views
Unable to upload excel in AngularJS UI Grid using SheetJS in IE11
I am trying to Upload an excel file at client side in AngularJS UI Grid using SheetJS. The code works fine in Chrome and Firefox, but on IE it gives the following error Object doesn't support property ...
1
vote
1answer
17 views
How to escape UI router params in ui-sref
I have a list of clients and I want to pass the client name using $stateParams
<a ui-sref="cmd.projects_by_client_id({
clientId:{{client.vid[0].value}},
client:'{{client.title[0].value}}' <-...
-1
votes
2answers
42 views
.map function returning duplicate element angularjs
I get an array through a PHP backend, which shows like below :
{
"response":{
"code":"0000",
"message":"OK"
},
"data":[
{
"id":"2",
"description":...
0
votes
0answers
24 views
How to get table header to change size when content changes
I have a table with a table header to keep up with scrolling. When someone clicks on of the content rows it opens a few extra rows. The problem is that the header table doesn't change size to keep up ...
0
votes
4answers
45 views
How to Return the Success Result of $http.post in Angular JS
I have an $http.post call like this:
$scope.calcBarCost = function(bar, SAC, fieldSpeed) {
console.log('bar cost details', bar);
console.log('SAC', SAC);
console.log('FIELD SPEED', fieldSpeed);
...
0
votes
0answers
7 views
angularjs focus UI fields for server side validations
Hi I have a requirement that I need to focus to the error fields returned by the service.(business valuations)
Here I need to design both UI and back end rest API (Java) to fulfill this requirement.
...
0
votes
0answers
29 views
Can't place angular message front of input
I have some angular messages based on form validation, and I want to place them in front of my input, but somehow I managed to fit my input in the middle of the body and the input has a max size ...
0
votes
1answer
19 views
How do I get protractor to check for an element before the page loads completely?
I am starting off on a non-angular page, clicking a button with browser.findElement.
Upon clicking on the element the user is taken to an angular page that has a spinner until the page load is ...
0
votes
0answers
7 views
How to change height width of uib carousel?
i used uib carousel in angular js ,for slide video in every 5 sec. for that used object element to embed video in that using vlc plugin.but porblem is that uib carousel have fixed height and width. ...
-1
votes
1answer
27 views
ng-repeat and ng-if with conditions
<div class="styleColloboration" ng-repeat="item in colloborationMessages">
<div ng-if="item.myId == item.myPId">
<b>{{item.msg}}{{item.cdate}}</b>
</div>
<...
0
votes
1answer
10 views
angularjs google places autocomplete not working locally
I want to use angularjs google places autocomplete in my local application.
Code is working when tried in plunker but when same code is copied to local application it is throwing the errors.
Working ...
0
votes
0answers
36 views
Colouring Stars based on Number?
I'm getting ratings from Back end in the form of Numbers, How to Show them in the form of Stars in AngularJS?
and I have to Submit the rating as well from Front End to the Server.
1
vote
2answers
15 views
Cannot set property 'baseUrl' of undefined
I have generated a javascript client using NSWAG from a ASP .NET Rest API. But I am finding a few errors when I am trying to call an API method.
The error in cause is: TypeError: Cannot set property ...
0
votes
1answer
16 views
Delete route not working in express / angularjs
When I call a "get" function passing the contact id as a param, it works normally, but when I call the "delete" function it does not find the route, and returns the error message in the console
...
0
votes
0answers
9 views
routing not working with php WAMP and angular without .php
localhost/test/das.php => working
localhost/test/dash# => not working .
should open the angular framework . but its working only with .php
new computer - > php 5.6 wamp
what can be the problem, ?...
0
votes
0answers
23 views
AngularJS - Get Authenticated User Data
I'm trying to get the authenticated user data so I can display the name of the user. I'm using AngularJS and Laravel.
When I do:
public function getUser(){
if(Auth::check()){
$user = Auth::...
0
votes
1answer
15 views
How to stop ui-router from reloading resolve when params change
I have an app with a base app ui router state...
$stateProvider.state('app', {
navigationTitleKey : 'app',
abstract: true,
url: '/?{param}',
views: obj
});
And then a child and grand-child ...
-2
votes
1answer
21 views
How to separate the year from the given date using angularjs [on hold]
I have a static data date given as input in the controller. I want only the years to be displayed from the date. How to do it in angularjs. Please help.
date:{'12-02-2016' , '22-02-2017'}
So the ...
0
votes
1answer
15 views
Array with 2 properties, AngularJs
I need to save 2 Strings into an array like this:
array[0].name = "William"
array[0].dni = "00112233Z"
so i can use ng-repeat:
<ul>
<li ng-repeat="item in array">
{{item.name}}...