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
3 views
Unable to group the toolbar items of custom directive ckeditor in angular js?
In my angularjs web-app am using custom ck-editor directive. This is my code
angular.module('app').directive('ckEditor', function() {
return {
require: '?ngModel',
link: function(scope, elm, attr, ...
0
votes
1answer
11 views
AngularJS date format
I'm unable to format the date using AngularJS inbuilt filter. I'm getting date-time strings in date object as:
{
'from_date' : '2016-10-01T00:00:00.000Z'
'to_date': '2016-10-31T23:59:59.999Z'...
0
votes
1answer
10 views
autofill does not work in Angularjs based page
I've a page and I want to fill the login/password fields and autoclick "Sign-In" submit button. I've mentioned all the details in here.
The page is using AngularJS.
It does not work since the login/...
0
votes
0answers
10 views
Alert user when redirects to other page in AngularJS
How can I alert user when leaving, going back (back button on browser), refreshing the page and closing the tab to save data before leaving the page in angularJS.
Special condition:
I have two ...
0
votes
0answers
14 views
How to Bind Images into Angular
Here i want to up-lode image into sql service all data is binding why image path not taking
Html code
<input type="text" class="form-control" ng-model="password" />
<input type="file" name=...
0
votes
0answers
10 views
how to store ids of all products which are added to cart?
when two products were added to cart only second product id with total amount and quantity is posted to database with one order id which is auto generated.
I tried to use array but didn't get any ...
0
votes
1answer
28 views
Make an object from a string in node js
I am sending the string from AngularJS to NodeJS in following form.
"{↵obj:{↵one:string,↵two:integer↵}↵}"//request object from browser console
I want to convert this string in object and use its ...
0
votes
0answers
4 views
angularjs routes unit testing uisng jasmine
iam very new to jasmine,iam trying to test routeprovider.can anyone plz tell me where iam doing wrong..is there anyway to test routeproviders ?also plz suggest some tutorial for angulajs karma jasmine ...
0
votes
1answer
13 views
How can I use dependency injections in angular2
This is my AuthService.How can I use this auth service in all my components. I want to maintain userLoggedIn value global for all my components.I am getting the below error, when I run this script - ...
0
votes
3answers
45 views
How to create object name in angular js
var eachProduct =
{
"name": name,
"id": id,
"category":category,
"price":price
};
Answer:
eachProduct[0].name
But i need Answer this type
eachProduct["First"].name
How to create ...
2
votes
0answers
15 views
Map is not visible in leaflet
Not able to display Map on leaflet ! I have tried this
mymap.js
.controller('MapCtrl',function () {
var map = L.map('map1', {
center: [52.48626, -1.89042],
zoom: 14
});
index.html
<div ng-...
0
votes
0answers
6 views
Select component in form.io is showing an extra textbox at the bottom
I am new in form.io. I created a registration page containing textboxes and select controls. This page is embedded into my application. In the preview everything is shown fine,but after embedding in ...
1
vote
2answers
42 views
Angularjs orderBy is not working correctly
I have modified the example given in the angularjs docs. I put zero for all age fields in that example and when I click on the age sorting button the list is getting sorted (don't know on which ...
1
vote
1answer
15 views
John Papa Style Guide Checker just like pypi pep8
Hi I am going through John Papa's Angular 1 Style Guide. We want to build an automated system to verify that all Angular code pushed by freelancers at our organization complies with the styleguide. Is ...
0
votes
1answer
12 views
Angular ui.router resolve not working when ng-controller put in html view
I have the following nested states for the ui-router
index.html
<body ng-app="testApp">
<div ui-view></div>
<body>
view.homepage.html
<div id="header" ng-controller="...
0
votes
0answers
16 views
How can I pass a scope variable which may change as directive parameter
Hi I have following directive:
app.directive('multiselectTableFilter', ['dependency1',
function (dependency1) {
return {
restrict: 'E',
scope: {
...
0
votes
1answer
13 views
Unknown provider: $animateCssProvider <- $animateCss <- $uibModalStack <- $uibModal
If I update my angular version to higher version I am sure it will work, but I am more depended on 1.3.20 version of angular.
I tried angular-bootstrap version from 1.1 to the latest, nothing works ...
0
votes
1answer
20 views
Angular2 Tutorial (Tour of Heroes): EXCEPTION: Response with status: 404 Not Found for URL: null
I apply code from https://angular.io/docs/ts/latest/tutorial/toh-pt6.html and run good except page hero detail: http://localhost:3000/detail/12
File app.module.ts
import './rxjs-extensions';
import ...
0
votes
0answers
6 views
how to test mobiscroll date-time picker in protractor
I'm new to the whole concept of e2e testing and Protractor, so please bear with me..
I'm trying to write an e2e testing script for a form using protractor, but one of the fields being a mobiscroll ...
-2
votes
1answer
26 views
Want 6 radio buttons in two line with 3 in each line
I have 6 radio buttons. I want 3 on one line and other 3 on another line. I am using ng-repeat for retrieving radio button data from json. I tried putting ng-if for placing it for even and odd but its ...
0
votes
1answer
34 views
Angularjs issue showing div results on submit
The following form shows a list of data on submit. I am trying to show no results found when there is no data on submit. I tried like shown below,it shows and hides the div. But when there is no ...
-1
votes
0answers
3 views
angularjs-jasmine test case using $httpBackend
i'm trying to write unit test case for $http service using $httpBackend, here the confusion is do we need to call both $http and $httpbacken or just call $httpbackend will do the stuff of $http.
and ...
0
votes
0answers
14 views
How to run AngularJS 2 with Codeigniter 3 in Windows OS..?
I have downloaded AngularJS 2 'Hello World' program from the site and followed the procedures to run the program. I have successfully executed program in AngularJS 2 without Codeigniter 3.
But in ...
0
votes
0answers
14 views
Uncaught TypeError: Cannot read property 'bold' of undefined
I'm using dx-data-grid in my project. I tried to apply "export" widget from dxDataGrid UI widget , but when i click on this button, i see error in browser console. DX Data Grid Export Button is not ...
0
votes
0answers
25 views
A script to run from custom extension
For some reason for my daily work , i need to automate the task of filling values to a form. No selenium since i am not trying to test any feature or functionality.
Problem is the page has been ...
0
votes
1answer
13 views
Spring + Angular + JAR Build with Command Line Parameter
I am building a UI into a JAR for Spring Server. I have a bunch of Angular JS pages. I want to pass in a command line argument to my jar that tells it where the API server is like so:
java -jar ...
2
votes
2answers
41 views
$timeout inside will loop creates infinite loop
I cannot seem to get the timeout and the loop to work together. If I remove the loop it works or if I remove the timeout it will work. Together I will get an infinit loop and it doesnt seem like the ...
0
votes
7answers
41 views
How i can bind json data in html table using angular js?
Here is my json data. How I can bind this data in HTML table using angular.js?
[{"keycolumn1":1,"originkey1":1,"datafield1":1},
{"keycolumn1":2,"originkey1":2,"datafield1":2},
{"keycolumn1":3,"...
0
votes
1answer
27 views
Why is my angular directive (using compile) blocking input in some scenarios?
I've written a directive which adds a class based on a condition - see snippet at the bottom of the question.
It works as expected in the following simple usage scenario for a required field:
<...
0
votes
1answer
11 views
Angularjs directive with dynamic template and transclude
I'm trying add a dynamic template and met problem with transclude.
This is dynamic template function:
var getTemplate = function(contentType){
var template = '<button style="cursor: pointer;...
0
votes
0answers
16 views
Difference between API calls from frontEnd and Api calls from Backend to any external Backend server Code
since i was struggling in making API calls to apache server from my angular app running in node-express,
So i was unable to call apache server with POST calls inspite of setting the CORS filter in ...
0
votes
0answers
24 views
How to redirect and pass data in angular js with post method
I want to redirect and pass some data to other page.But not using query string and not pass data in URL
(function() {
var app = angular.module('PlateformApp', [])
app.controller('...
1
vote
1answer
26 views
Angular 2 Cannot read property 'x' of null
I am learning promises and I am trying to get a simple example to work but I get the error. The promises role is just to check whether a certain name has been entered and produce a boolean error on ...
0
votes
1answer
13 views
AngularJS: ui-select duplicate error
In ui-select-choices repeat="type in (types| filter: $select.search) track by type.name. In track by type.name part, given the name is NOT a key. I tried adding two exactly the same data (different ...
-1
votes
1answer
22 views
jsonData will not Print on console there is no erros it just will not print
.controller('StocksCtrl',['$scope','$stateParams','$http',
function($scope, $stateParams) {
//http://finance.yahoo.com/webservice/v1/symbols/YHOO/quote?bypass=true&format=json&view=...
0
votes
3answers
30 views
Angular ,display array using service
i am learning angular by doing small exercises. i have successfully displayed objects in controller and trying to learn to use service and factory. i am unsuccessful in displaying array "names" on a ...
0
votes
1answer
18 views
convert js callback function to angular with promise .then
how would I angularize this js function? I need it to use asynchronously. my understanding is .then and angular can do that.
function showResult(result) {
var lat = result.geometry....
0
votes
2answers
19 views
Data-binding input[radio] that has button template (switch) AngularJS
Why is data binding not working on my radio button working as switch in angular?
I have this form:
...
<div class="form-group">
<div class="btn-group" data-toggle="buttons">
&...
0
votes
1answer
23 views
response.sendRedirect not working (java)
I am trying to set up a login page for my website, however at the moment I am stuck on the sendRedirect method, as it doesn't appear to work at all.
My login page is a .jsp file that passes the ...
2
votes
2answers
35 views
$http get return a promise angular
I have this code in a service, it works for me. As far as I know, $http.get() returns a promise, promise executes asynchronously, so why do I need to use deffered.resolve(res.data) to return data in ...
2
votes
0answers
11 views
AngularJS UI partially blank/white when scrolling or providing input on mobile
Our angularjs site seems to be having issues with page size on mobile. It seems that when you pull up an input (dropdown or text), some area of the page behind the buttons and inputs goes white.
...
0
votes
1answer
21 views
angular-chart custom tooltip position not working as expected
Hi guys I am wondering how can I fix the tooltip position on hover a point, I have checked many related posts in stackoverflow, also I've tried all these examples on my implementation:
https://github....
0
votes
2answers
22 views
How do I change a class with ng-class if the form is not invalid?
Basically I want to show that an input is required, but when the user enters text into the input it will show them that the input is valid (changes border from red to green)
I'm having trouble with ...
-3
votes
0answers
24 views
TypeError: a is not a function in AngularJS
I am getting this error while calling angular services. Any help on this.
Thanks in Advance.
angular.js:13920 TypeError: a is not a function
at init._rowsHtml (kendo.all.js:50472)
...
0
votes
0answers
8 views
how to get id of newly posted record from javascript function into controller in AngularJS?
I have a basic question. In my AngularJS app I have a javascript function that has a $resource callback method that looks (in part) like this:
function upload(files) {
//ToDo Check that ...
0
votes
0answers
10 views
Edit word document embedded in a web application
I need to implement in my web application the ability to create and edit a word documents. I see that the Ultra Office package can do this, but my application is not windows based (Angular/Javascript+...
0
votes
3answers
12 views
Angular template not loading
My template for route('/') is not loading.
No errors received.
Suggestions please?
0
votes
2answers
27 views
Need to bind data
Following is my code, I need to bind data to ng-model, when I bind ng-model = "value", I can see the value in the text field, but I want to update the value on changing the text input.
<tbody ng-...
1
vote
1answer
17 views
AngularJS MySQL REST - Origin http://localhost:8383 is not allowed by Access-Control-Allow-Origin
I am new here in 'stackoverflow.com'.
I have a problem with my AngularJS Application and hope that you can help me.
First of all I have created a new maven webapp project and have used the RESTful ...
2
votes
1answer
32 views
How to create a list item with an icon on the left, center and right?
I am creating a ionic app that uses the Spotify API. I want to create a widget that is a list item with an icon on the left(last-song), center(play/pause) and right(next-song) icons. I'm having ...