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
Put custom variable outside angular directive's scope?
I notice that ng-tabledirective (here) can put another variable $data outside their respective directive like this :
<table ng-table="vm.tableParams" class="table" show-filter="true">
<tr ...
0
votes
0answers
3 views
angular-schema-form to select a country from drop down to fetch respected states then with cities
"items": [
"address.address1",
"address.address2",
{ "key": "address.country",
"type": "strapselect",
"placeholder":"country",
"options": {
...
0
votes
0answers
14 views
how to change service options in controller in angularjs
I'm working on an ionic app, I have written an angularjs service for ionic confirm popup,
service
app.factory("PopupSer", ["$rootScope", "$ionicPopup",
function ($rootScope, $ionicPopup) {
...
0
votes
0answers
7 views
Styling menu bar with left and right navigation button
I used ng-repeat in following code to create a dynamic menu based on roles selected by user. but after 5 roles I need to have a right navigation button which will actually enable next 5 roles and when ...
0
votes
0answers
16 views
JavaScript String Template Literals does not work in Angular Expressions
I am playing with String Template Literals of JavaScript with AngularJS. It seems like string template literals are not supported by AngularJs Expressions. Here's the code which I am playing with
&...
0
votes
0answers
12 views
Angular controller returns blank in Html page in the double curly braces
I'm working on a simple binding application with typescript. I wrote a controller named 'bugCtrl' and it looks like working just fine in debug mode (also console.log and alert). this is my html page
...
0
votes
0answers
16 views
Image value not Bind value from angular to mvc
Html
<div ng-controller="MyCtrl">
<input type="file" ngf-select="onFileSelect($files)" multiple>
</div>
Angular.Js
app.controller('MyCtrl', ['$scope', 'Upload', ...
0
votes
0answers
6 views
How to organize angular-hotkeys for enterprise application?
I am working on a large scale web application which uses angular hotkeys for managing keyboard shortcuts. I know how to implement this on a technical level but I am a bit unsure of how we can acheive ...
0
votes
1answer
8 views
if url contains string, do something, else do another or add paramter to console which runs protractor
if(browser.getCurrentUrl().
toString.contain('local')){//if it is local,do something.if it is not local, i need to do another things
//do something
}
else{
//do another
}
I need ...
1
vote
0answers
14 views
Multiple url changes with $routeChangeStart
Hi all I having a hard time figuring this out and ran out of ideas. I have this website which I should restrict some urls if the user has no authentication. I reviewed some questions and found ...
0
votes
1answer
16 views
show alert if months/years in two strings are different
i am creating a web app in mvc-5 angularjs,
i need to show data of the following date entered by the user(in textboxes(i have two textbox)), but the user can only fetch the data of 1 month like, if i ...
0
votes
1answer
18 views
Two $http request for login
I am developing a login page which look into LDAP and MySQL database for user authentication. The idea is to be request for the two connections simultaneously, any one complete request will cancel the ...
0
votes
0answers
4 views
how to inject env dependant constants module to a fountainjs angular1 generated app
I want to add an angular constant to my app module, on a site generated with yeoman and generator-fountain-angular1. but depending of the NODE_ENV current value.
That because i want to deploy with a ...
0
votes
0answers
18 views
D3 - Adding div to svg is appended but not seen AnguarJs
In the following program, I am adding a div to svg, by d3. It is appended properly as can be seen in the dom structure of chrome browser. But, I cannot see the background or its visibilty in the ...
-1
votes
2answers
28 views
Toastr not working with angularjs
I am trying to use Toastr with angular js, but getting the following error. I have included jqery.js file as expected.
src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"
Error ...
-1
votes
2answers
21 views
AngularJs Moving data to redirected page
I am trying to use data in a redirected page which is redirected in angular.
How can I move data in this case. I tried using in rootscope but is this preferable? is ther any way where I can use the ...
3
votes
0answers
31 views
Angularjs : Access scope of controller when the controller function is invoked from a directive
I have a controller and a directive. In the link function of the directive I invoke a controller function. When the controller function is invoked I want to access the scope of the controller inside ...
1
vote
1answer
12 views
How to create custom modules in AngularJs and bind them in runtime
I used to write angularJs related code into one file.(app.js) when the application grows i realized that it is hard to maintain the app.js file due to all things goes to same file.
How it look in ...
0
votes
2answers
11 views
FB init function is not working in angularJs
I have tried many solutions For below mentioned error but nothing works for me I have refereed "https://developers.facebook.com/docs/javascript/howto/angularjs" for my implementation.
"Error: FB is ...
0
votes
0answers
14 views
How to Bind Image value from client side to Serverside
Here i'm using Angular, mvc why my data is not binding from Angular to mvc here i'm getting all Null values at Server side
Html
<input type="file" name="file" accept="image/*" onchange="angular....
0
votes
0answers
10 views
How to display function value in ui grid column field without braces?
I want to display itemAmount value in table without braces () of the function and need to show total of the column at footer. It displays value in column and it displays total of that column at footer ...
1
vote
2answers
16 views
Show hyperlink or text beside angularjs checkbox in each table row depending on checkbox status
I have an angularjs table that looks like this:-
Here is the code below:-
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
<div ng-app="...
1
vote
0answers
7 views
Weblogic REST API - Preventing browser's basic authentication dialog on 401
I have a web application deployed in weblogic. I'm using angularJS to make rest calls to the weblogic REST API in my web application. When the weblogic REST API session has expired, it responds with ...
0
votes
0answers
16 views
ng-view not following CSS of 1 View
I have banged my head against my keyboard for a small formatting problem.
I am using ng-view and it seems to show the index view (main view using "#/" route) without the proper masonry CSS formatting,...
2
votes
2answers
30 views
How to include <tr> element in angular directive (transclude)?
I want to include <tr> and <td> and apparently I can't do that with directive. It keeps ignoring <td> or <td> as if they don't exists. here's what I trying to accomplish:
<...
0
votes
4answers
27 views
What's the error in this simple AngularJS calculator?
AngularJS newbie here. I'm trying to make a very simple calculator that adds two values in Angular 1.5. The value of calc.result doesn't update.
index.html
<body ng-app="Calculator">
<...
0
votes
0answers
5 views
Google ads in angular js not working when route change
I need to show google ads in my web application using angular js. Google ads code are stored in database and is retrieved as json data .I followed
https://github.com/Stegoo/angular-google-adsense
...
1
vote
0answers
11 views
how to hide a item in aci tree
Is there anyway to use hide option during the construction of json in aci tree?
{
"id":1,
"label":"Brand",
"inode":true,
"checkbox":true,
"radio":false,
"branch":[{"id":2,"label":"Acura","inode":...
0
votes
1answer
27 views
angular counting 2 chars for newline in text area
I am counting characters in text area and showing remaining characters. I am also using ng-trim. But new line is occupying 2 chars and i am able to minus only one from length. how to work around this? ...
0
votes
0answers
9 views
How to pass text box value from angularjs to servlet page
Getting text box value in script and passing to servlet page through post method
Here is my Script code:
var app = angular.module("app", []);
app.controller("Ctrl", ['$scope', '$...
0
votes
1answer
6 views
Ui-grid with ui-router passing params
I am a beginner (idiot alert)
I am successfully using ui-grid except when they click on an icon in a row it's meant to take them to a new view... The view I'm in showing the ui-grid has a url of
#...
0
votes
0answers
3 views
Angular.js ngDialog box disappearance iOS devices Safari browser specific issue
I am facing an issue where my ngDialog box disappears very quickly on my iOS devices. The dialog box is being displayed for 3 seconds on desktop system but disappears very quickly on iOS devices in ...
0
votes
1answer
23 views
Passing value between controllers in AngularJS
As stated in the title, I'm trying to pass a value (ID) from one controller (PerksApprovalController) going to another controller (PerksDetailsController). Please find below image for visual reference....
0
votes
0answers
8 views
Update values not reflected in firebase database using ANGULARJS
I am trying to edit values into Firebase using AngularJs, but when I click on submit on the form, the page did display the new values but when I do a refresh, the values are back to the old values ...
0
votes
0answers
37 views
How to get the last (=) value 78? [duplicate]
Angular js code. This is my current code, which helped to get first equal parameter. how to get the last = value ? i mean 78
var url = window.location.href;
$scope.productId = url.split("=")[1];
/...
0
votes
0answers
16 views
Angular (1.5) $compile with multiple scopes
When using controllerAs in Angular 1.5, you can refer to multiple scopes from the same chunk of HTML, for example:
<div ng-repeat="activity in landing.activities">
<draggable-action-item ...
0
votes
0answers
14 views
Provide alternative if config file import fails in Angularjs2
This sample code in AngularJS 2 which reads constants from a config file and initializes the api params:
import {Injectable} from '@angular/core';
import {CONFIG} from '../config/app.config';
@...
0
votes
2answers
31 views
AngularJs passing url as parameter
I am trying to pass a path url as parameter to my asp.net mvc controller method through angularjs.
When I debug I see that Path parameter on code is missing slashes in it.
Like instead of "D:\MyDir\...
0
votes
0answers
6 views
Kendo groupHeaderTemplate not compiled properly
In Kendo UI grid, following template is working fine
groupHeaderTemplate: "<i ng-class={'someclass':1==1} ng-click=DoWork(dataItem)></i>
But following is not working.
...
0
votes
3answers
20 views
CORS Issue in Web Console (angular js)
I have a developed a web console in angular JS in which I am using post and put methods and making HTTP requests in which I send json and calling a WSO2 REST API to get response accordingly. Its ...
0
votes
0answers
8 views
How to allow drag and drop for panels as well as for its child list items in angular dragula
I am loading multiple panels using ng-repeat, In each panel there are list of child items. For each panel I added this dragula='"parents"' and for children items added dragula='"childrens"'.
Right ...
0
votes
0answers
8 views
Bootstrap popover mouseenter flickers
I have created popover on mouseenter. But it flickers when I hover on it. Noticed that this is happening if I pass large text. Below is my code,
<a popover-template="'popover.html'" popover-...
0
votes
1answer
27 views
Angularjs push array to scope
I have problems to push an array to scope and empty the array after that.
I fire up the function ng-click="addInput() to add a new form to the Array $scope.info.sites = []; wich contains an another ...
0
votes
1answer
17 views
Angularjs $routeProvider Config
I have a simple angularjs App called testAPP. In it I have a constant called URLS, which I may also use in other services of this app. now I need to use the URLS.DASHBOARD_URL inside templateUrl of ...
0
votes
1answer
25 views
Getting error in AngularJS simple App with Firebase
I am getting the following error in my AngularJS:
Error: [$injector:modulerr] http://errors.angularjs.org/1.5.8/$injector/modulerr?p0=manageApp&p1=%5B%24injector%3Amodulerr%5D%20http%3A%2F%...
0
votes
0answers
9 views
Protractor time-out while trying to download file
I've written a simple script in Protractor that selects some option from the screen, and on hitting submit, a file should download i.e html content is exported as PDF. All seems fine, except that ...
0
votes
1answer
17 views
AngularJS: JSON.parse(data).success is not defined
I'm trying to use JSON.parse the data:[{"id":"ABC123","provider_type":"Center","name":"Test1","phone":"03 2222 9999","mobile":"1111 123 123","email":"[email protected]","address":["3999, Victoria","Est ...
0
votes
0answers
22 views
Angular - Can't access directives scope when directive is injected outside of Angular
I am injecting Angular markup from within a jQuery plugin (got the idea from this gist):
var $place = this.$el.find('.medium-insert-active');
Angular.element($place).injector().invoke(function($...
0
votes
0answers
12 views
Not able to login in Form.io management application running in http://localhost:3001
I am setting up a combined form and API platform for Serverless applications with form.io. Installed everything as mentioned in https://github.com/formio/formio
After installation, I tried to login ...
0
votes
0answers
8 views
ReferenceError when testing angular service with Karma
I have a simple Angular.js service. It makes use of piece of code called esprima.
Esprima is referenced in index.html like so:
...script src="https://unpkg.com/esprima@~3.1/dist/esprima.js"...
and ...