Tagged Questions
AngularJS 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 single-page ...
0
votes
0answers
2 views
integrate gulp and bower with django for angularjs
I am new in django and I try configure angularjs template with django. Angularjs template uses gulp configration. So anyone please tell me that how I configure gulp with django to run Angularjs ...
0
votes
0answers
4 views
Can't get server sent events and event source to work in JHipster
I'm using JHipster 3.5.0 with spring-boot and angular to build an application.
I would like to send updates from the backend to the UI using server sent events, but I can't get it to work.
Here is ...
0
votes
0answers
9 views
Accessibility - How to jump between heading like h3 with keyboard
I know that the good scenario is, when I click on number 3 on my keyboard I supposed to jump between my h3 headers.
From some reason this thing didn't happens in my case and my screen reader (NVDA) ...
0
votes
0answers
7 views
How to get ionic rootScope on config stateprovider?
How to retrieve $rootScope value in line below?
.config(function($stateProvider, $urlRouterProvider) {
$stateProvider
//this is lines that i need to get $rootScope value
}
0
votes
0answers
4 views
How to work angular2-indexeddb?
I have learn angular2-indexeddb service. But, not understand some point to indexeddb.
What is indexeddb?
How to store data?
Support all browser for this service?
How to work this service?
Please ...
0
votes
2answers
14 views
Angular2 directive - string issue
We created a directive in Angular2 and have an input property that should receive a string. The problem is that, we are not able to pass a string.
If we try to do this:
<learning-requirements [...
0
votes
0answers
12 views
Integrating routed Angular 2 App in exisiting App
I am trying to integrate an Angular 2 (RC 2) App into a desktop application built with Electron and Angular 2 (RC 2). Existing App should not be changed significantly, so I am searching for a solution ...
0
votes
1answer
14 views
How to add new row from database in angularjs?
I want to add new row in table.Where table data is coming from database.which is as follow..
<div class="form-group form-horizontal" id="item" style="margin: 5px;">
<label class="col-xs-...
0
votes
1answer
9 views
Allow only one flask request for a particular route
I have a flask app which uses angularjs front end. I make the http request through $http service. As shown in the code below.
$http.post('/updateGraph', $scope.graphingParameters).success(function(...
0
votes
3answers
17 views
Angularjs state url rely on numeric url
I am using the following url in my state:
.state('forum.spesific', {
url: '/:articleId',
templateUrl: 'modules/forum/client/views/forum.client.view.html',
controller: '...
0
votes
0answers
19 views
Why is 'this' loosing context in new Angular 1.5 components?
Got a very odd issue coming up here with the new components. When we had a 1.4 directive we had the following code...
link : function(scope, elem) {
var clipboard = new Clipboard(elem[0]);
...
0
votes
0answers
13 views
Passing a value from page to a uibmodal window
I am trying to pass an object from a function to uibmodal window. The object has value in the caller but within the uibmodal it is always NULL or not available.
Existing Code Snippet.
...
0
votes
0answers
4 views
ES6 angular-meteor ng-table getData function not called
I'm trying to refactor my code to ES6. I'm using angular-meteor and ng-table. Before refactoring, the data is shown on the table. However, after refactoring to ES6 syntax, the data doesn't show ...
0
votes
0answers
12 views
angular js dynamic column add
I am creating leave application in angular js
i want to show the dates of the current month infront of each employee in angular ui-grid.Dates is an array so i converted it into array of object but i ...
1
vote
1answer
24 views
Chrome debugger stops at a function even without a DOM break point
Hi I have a angular js application. And when I run my application and hit F12 and open the debugger, for each and every page it continuously calling following function and stops there just like it ...
0
votes
1answer
10 views
How to initialize google maps API in angular without using any directives?
I am trying to initalize google maps in the application I am writing, I am using the places api for some of the functionalities which is working fine,
Now I am trying to show a map on a page but the ...
0
votes
1answer
21 views
Nested ng-repeat with constrained data
I have a nested ng-repeat as follows:
<div ng-repeat="item_l in list1">
<div ng-repeat="item_f in list2">
{{item_f}} {{item_l}}
</div>
</div>
It gives me ...
3
votes
2answers
42 views
AngularJS dynamically hiding elements
I'm currently experimenting with Angular and I have an issue, I have a set of questions from my API, some of them rely on other ones to be checked as yes when its a radio button question and will have ...
0
votes
0answers
6 views
angular material design nested accordion implementation
i have to create nested accordion in angular material design,so i have used :
https://codepen.io/ionic/pen/uJkCz
for accordion but later i found it's simple accordion. i tried to create nested but ...
0
votes
1answer
10 views
ionic : Enable menu with back views issues
I created the application using with ionic slide menu and navigation between multiple views.
For example, I have View-A View-B and View-C.
If I used to navigate View-A to View-B and come back ...
0
votes
4answers
35 views
AngularJS .then is not a function()
Why I get this error when calling .then on a promise?
vm.submitPromise(...).then is not a function
A simplified version of my code is this:
var submitPromise = function($q) {
return ...
0
votes
2answers
16 views
Angular translate - choose another key if not valid
Is there any way to tell ng-translate to use another key if the first doesn't exist? We can achieve that by using translate-default:
<any translate="possibly.non.existing.key" translate-default="...
0
votes
1answer
17 views
Angular $http promise always resolving
In every $http call with .then(successFunc) and .catch(errFunc) (alternatively then(successFunc, errFunc) the then/success is always called (the promise is successfully resolved).
Example
$http.get('...
0
votes
0answers
9 views
Karma disconnects before all tests run
We are using karma as the test runner for jasmine unit tests, testing an Angular application. We have over 6000 tests. Karma is so slow to run tests, and never gets past about 2700 tests (11 mins).
...
0
votes
2answers
18 views
How to send save multiple ng-options json data?
I am new to ng-options
Here I attached fiddle link http://jsfiddle.net/soumyagangamwar/htj1wy0g/
I have a JSON data in my controller
$scope.tables= [{
"label": 'table1'
...
-2
votes
0answers
17 views
How to write custom filter for JSON in angular.js?
There is a usecase which takes a string as a search input and lists the details available in a JSON object. The ng-repeat tag in the html uses the default filter available. I need to write a custom ...
-1
votes
0answers
3 views
how to use angular mask ip range in form validations
I need to use ui-mask for IP validation in angular input text, but i don't know how to use it.
And i wont use regex validation .
If angular have a separate mask for use?
0
votes
0answers
5 views
angular html5mode in tomcat apache 8.5.4 gives 404 on page refresh
I m creating war file using gulp-war and deploy it into tomcat apache server 8.5.4 on my system
it first runs on localhost:8080/projectName/
but whenever I refresh the page it gives 404 error . How ...
0
votes
0answers
18 views
“Restangular” Error: $injector:modulerr Module Error
I try to make authorization in my app with angular.
I created app.service and injected "Restangular". And i have this error
Error: $injector:modulerr Module Error Failed to instantiate module ...
0
votes
1answer
15 views
How to increase the width of an Angular Material datepicker
I have something like this:
How is it possible to make the line under the "Date of recruitment" and the "down array" adapt to half of the layout as in flex="50" for example. It is pretty easy for ...
0
votes
0answers
6 views
Issue with SelectionStart property on Microsoft Edge
I am implementing a angularJS text inserter into a text area which inserts the specified text at the position of the cursor in the text area. I found this example online after a little bit of googling....
1
vote
1answer
19 views
Updating AngularJS ng-repeat table due to dynamic JSON changes
i want to display the last activity status of each animal, whereas activity stati and animals may change over time.
First I get this JSON:
$scope.JSON = [
{"Animal" : "Horse", "Status" : "awake", "...
0
votes
0answers
18 views
CORS preflight call not firing the following GET/POST request
In the WebAPI application I have the Custom CORS policy implemented as described in the article: http://www.asp.net/web-api/overview/security/enabling-cross-origin-requests-in-web-api#allowed-origins ...
1
vote
2answers
26 views
angularjs directive run controller second time
I have an angularJS app with nested ui-view like this (simplified version):
index.html
<html ng-app="admineConsoleApp">
<head> </head>
<body>
<div>
<div ui-...
0
votes
0answers
7 views
How to display top 3 data label in piechart highchart
I have a requirement where I want my pie chart to display only top 3 data label instead of displaying all and filling the space. Is there any inbuilt highchart api available or a best solution to ...
2
votes
1answer
16 views
AngularJS 2 Dart get RouterLink Parameter
I want to create a details page in Angular and want to pass an entry id with the RouterLink. Is there a way to get the parameter in the url?
The URL looks like: http://localhost:8080/details?date=13-...
0
votes
1answer
9 views
Setting up Bowersync, Gulp and Angularjs project
I am having a problem with setting up bowerSync, Gulp and angularJs.
I have set up my local development server with bowerSync and now I am trying to add angularJs to the project. But every time I run ...
0
votes
1answer
18 views
ng repeat after postDigest not working
I am trying to load data from list to repeater but its not working the data is returning, list of students but its not showing on screen.
Controller:
$scope.students=[];
$scope.$$postDigest(...
0
votes
0answers
13 views
SB-Admin-BS4-Angular-2 not running in localhost in Firefox/Chrome
I'm trying to get this template running so I can start using some of the components and tools used in it, but when I do npm start, it runs fine other than:
npm WARN optional Skipping failed ...
0
votes
0answers
10 views
Call a javascript/jquery function on opening and closing of cfpLoadingBarProvider in AngularJS
I am working on app where I need to disable scroll until loading bar appears.
Any help on this?
angular.module("app").config(['cfpLoadingBarProvider', function (cfpLoadingBarProvider) {
...
0
votes
0answers
14 views
unable to import ModalController
I am trying following code:
import { ModalController, ViewController } from 'ionic-angular';
then modal controller display in red color as it doesn't get any reference and produces below error:
...
0
votes
1answer
18 views
Is it possible to populate directives in a page dynamically
I have a list directive selectors in an array I need to populate them dynamically in a page at runtime how do I proceed I am using angularjs 1.5.8
-1
votes
0answers
11 views
Bootstrap Checkbox sizing issue
ul.customMultiSelectBox
li(ng-repeat='isv in isvs' style='padding:2px 0px;')
.col-sm-1
input(type='checkbox' ng-model='isv.userAccess' style='height:15px;width:15px')
label....
1
vote
4answers
56 views
how to check object name?
I have object and this object include objects too. It looks like:
$scope.data = {
tree : {
name : 'oak',
old : 54
},
dog : {
name : 'Lucky',
old : 3
},
...
-4
votes
0answers
18 views
Fatal error: Call to a member function execute() on a non-object in C:\xampp\htdocs\endpoints\advisorpersonalReport.php on line 18
I'm getting error when m trying to execute my php select query with inner join and left join, please help me out... Thanks
Test.php
<?php
include 'connection.php';
$data = json_decode(...
-2
votes
1answer
13 views
Add CSRF-TOKEN into angularJs 2
I am making a website using Django and AngularJs2.
When I created the login form then submit form, Django shows an error:
forbidden (CSRF token missing or incorrect.)
I know Django wants me to ...
1
vote
3answers
61 views
how to send json format to server
I wan the data to be in this format
{"email":"[email protected]","password":"1"}
but getting in this format
{ '{"email":"[email protected]","password":"1"}': '' }
my client code,
headers.append('Content-...
0
votes
0answers
10 views
how to read directory(nodejs) and send it to frontend(angularjs)
I'm trying to read directory that has some image files from Node.js and utilize the data in angularjs but I'm not sure my readdir is correctly working.
here's my server.js code
'use strict';
const ...
0
votes
0answers
22 views
PHP: POST through angluar $http or jquery ajax?
So I came across multiple questions about how to use php with angular post requests since this isn't working easily. You have to grab the content, decode the json string etc. etc.
Now that seems to ...
0
votes
0answers
12 views
“Error: [$rootScope:inprog] ” : AngularJS
I have a input box type equal to text below (HTML).
<input type="textbox" data-ng-model="dueAmount" data-ng-blur="editBlur(dueAmount)"
data-ng-focus="editFocus(dueAmount)" data-ng-mouseover="...