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
9 views
Why AngularJS web apps are faster compared to Non-Angular web apps?
On browsing a non-angular web app, the entire page loads on navigation but its not in the case of AngularJS built web apps. Also the page renders as quick as possible with lesser time consumption.
...
0
votes
0answers
5 views
Cordova : Whitescreen after splashscreen
I have an application on Cordova with angularJS and CrossWalk.
Smartphone is connected to a private network with a wifi, on this network no internet. So the smartphone is connected on wifi but he ...
0
votes
0answers
3 views
Circular dependency error for angular auth code project
I have followed the tutorial: https://www.sitepoint.com/easy-angularjs-authentication-with-auth0/
and downloaded the repo here:https://github.com/sitepoint-editors/angular-auth
But when I try to run ...
0
votes
0answers
2 views
Increase value of a text box while click on corresponding button in same row ionic
I am a newbie to ionic and angular. I have created a form with ng-repeat as shown. I have a text box and a button for each text box. I want to increase value of the text box while click on ...
0
votes
0answers
9 views
binding radio buttons and input text fields with angularjs
im having some problems with this code and got stuck. Im trying to display both answers(from the two questions) in only one line and dynamically at the bottom after "your answers", so they change ...
0
votes
0answers
5 views
Uncaught Error: [$injector:unpr] Unknown provider: $cordovaPushV5Provider <- $cordovaPushV5
I am working with cordovaPushV5 plugin to be able to implement push notifications on my app.
I am doing exactly as in this tutorial: https://github.com/yafraorg/yafra/wiki/Blog-Ionic-PushV5
When I ...
1
vote
0answers
8 views
Get Service instance via console
In Angular 1, you could get the injector via the console, which allowed you to then get any service:
angular.element(document.querySelector('html')).injector().get('MyService')
This was extremely ...
0
votes
0answers
5 views
Is it possible to detect bind-once from filter?
Let's say I have
<span>{{amount | format}}</span>
and
<span>{{::amount | format}}</span>
Is there any way to detect a bind-once inside of the filter?
0
votes
0answers
4 views
how to delete an item in drop-down and list of items related to it
I have cascaded drop-down and list. When the item from drop-down is selected it will list out items matching to the drop-down selection.The problem I face here is in the deletion,I don't know how to ...
0
votes
0answers
5 views
Angularjs - Touch coordinates happen outside of screen?
I am building a mobile application with ionic framework.
I have 2 views: A, B
A is an introductory screen
B is the main view with many touch events attached to it.
When I open the application ...
0
votes
0answers
8 views
UI Automator viewer is not showing resource id for app created in ionic framework
For automating the the android app created by using ionic( version 1.7.15 ) in the uiautomaterviewer of android tools,
Problem Statement
I'm in need of resource-id to do the automation ...
0
votes
0answers
6 views
Custom angularjs core build
I want to use angularjs for simple widget, I don't really need many of the core angularjs modules e.g. $http, $cookie, a lot of core directives are also unnecessary for this project. Widget loading ...
0
votes
1answer
23 views
Reversing the image colour and background colour
<div class="col" ng-click="menu.onHomeClick()">
<img src="images/iconHome.png" class="menu-icons"><br>
</div>
I have a image (...
0
votes
2answers
11 views
Restangular POST body empty
I'm trying to make a request to /api/sessions with Restangular. My setup looks this way:
var data = { "email": "[email protected]", password: "userpass" }
Restangular.all('/api/sessions').post(data, ...
0
votes
0answers
18 views
jQuery get previous/parent function
I dont even know how to title this question.
So, I have this angularjs directive for lightSlider, and I'm trying to add my own next/prev buttons in the directive.
app.directive('lightSlider',function(...
-2
votes
1answer
21 views
Migrate AngularJS 1.x to AngularJS 2.x
I am learning AngularJS 2 to migrate my apps from Angular 1.x. I found, It completely different from Angular 1. What are the benefits I will get if i migrate from Angular 1 to Angular 2. I like to get ...
1
vote
1answer
17 views
Error sending error to client side in nodeJs
I am using async in nodeJS, and in my final callback I am handling the error and trying to send it back to my angular controller.
function (err, data) {
if (err) {
console.log(...
0
votes
1answer
13 views
Best structure for starting an angular js app?
i am creating a new angular js web app for a website, this will not be SPA.
i will use these libs ui-router, ui-bootstrap, ngResource, in starting.
so, can anyone help me by giving a sugession on ...
0
votes
0answers
10 views
Modify template based on directives present
I'm having this nested custom directives which output a table html after the json is loaded. I want to be able to supply certain directive attributes that can result in a modified template for eg: the ...
0
votes
0answers
7 views
Image upload and retrieve using Node Express 4 MongoDB
I have created a simple login and signup using MEAN stack languages. I have a profile page where user can edit his info like name, address, etc. I am able to store and retrieve input type "text" ...
0
votes
2answers
27 views
Regular expression for only alphabet and number but not space
I have a input text box in angular js which need to accept only alphabets and numbers but not special character as well as spaces.
For that I am using "^[a-zA-Z0-9]+$" but its not working as i am ...
0
votes
0answers
3 views
md-datepicker after select date and submission of form invalid date error in mozilla firefox only
Using md-min-date and md-max-date allow picking dates when using the datepicker, after pick date and submit the form then invalid date error coming in Mozilla firefox only Remaining browsers working.
...
0
votes
0answers
5 views
Cross Domain windows authentication in Angular js application
We have created an application and a web api which are hosted in various domains(or ports). I want to integrated both windows authentication as well as Forms authentication. So I need logged in user ...
0
votes
0answers
4 views
unable to show JSON data injected using service inside the amchart directive dataprovider
I am using amcharts as a custom directive. Now I want to fetch the dataProvider of this AmChart from the output of the $http.get service using webservices.
But I am unable to get this dynamically ...
0
votes
0answers
9 views
html table to excel sheet conversion in angular js
I need an xlsx format excel sheet with data validations. Means first column should accept only numbers. the second column date format should yyyy-mm-dd like this.
At first, I have prepared an xlsx ...
-1
votes
1answer
16 views
Filter inside angular controller not behaving as expected
I am using a filter inside angular controller in the following way, as per my requirement only $scope.codeSubFiltered should be filtered and not $scope.codeSub
After filtering the size/length of both ...
-2
votes
0answers
19 views
Laravel and Javascript frameworks for Single Page Application
I have a web project that has already been written with Laravel and not a single js framework. Now, I want to upgrade my web app to a SPA (so that the page doesn't always reload?) because I can speed ...
0
votes
1answer
10 views
Why use mongoose in mean stack?
I asked this as a specific question within the context of using mean stack.(It might be naive question because I am new to Mean Stack) I have seen example of using mongoose to map mongodb into objects....
0
votes
0answers
15 views
Framework agnostic application code [on hold]
I was reading this article where author consistently claims that modular application is great advantage over conventional application which is tied too tightly to the underlying library or framework ...
0
votes
2answers
20 views
focus on specific div when controller load first time angularjs
app.controller('homeCtrl', function($scope, $log, $location, $http, dataService, blockUI) {
var self = $scope;
self.init = function() {
$log.info("home controller loaded");
$('html,body')....
0
votes
1answer
13 views
how to display the image in the background dynamically in a chat ..just like whatsapp background wall paper
i tried hard to display the image in the background for chat box with options using ion-more icon at top-right-side of navigation bar, when clicked on it it shoes options as change background and exit....
0
votes
1answer
21 views
Call multiple web api using Angular js one by one
I have a scenario in which there is 8 web api's called as :
#1
Sync Local DB from server DB (response will RETURN a List=> myList)
If (myList.Length > 0)
#1.1 Call web Api to Insert/...
1
vote
0answers
19 views
Image upload using rest api in angularjs
I have to upload image using rest api for successfull upload will get the response of file folder destination ex: D:/ddd/download,I am not able to upload image, below is my code given suggest me any ...
-1
votes
0answers
19 views
Angular JS unable to call factory method
My code below
// Ionic Starter App
// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a ...
1
vote
4answers
51 views
Overflow-y doesn't work with ng-repeat
According to this Link, div needs to be set to a fixed height, but it doesn't work here with this following code.
<div style="margin-top:0.5vh;">
<div style="height:200px;border:1px ...
0
votes
3answers
23 views
Not getting response from server. Angularjs, nodejs
I'm trying to get a "success" or "failure" response from my server to client. The server is being implemented in node.js in express framework and the client in angularjs.
Here is the server side node....
0
votes
0answers
9 views
Reordering input fields during localization
I have inherited a product coded using AngularJS and I have a question regarding localization.
There's an HTML section that specifies two input fields of type input-number, one for a number of days ...
0
votes
3answers
34 views
How to call $http in angularJS sequentially? But I need to call it second $http based on response of first $http
I have to make two $http call but the second call must be based on first response(only if there is any error).
0
votes
0answers
15 views
AngularJS Routing issue - 404 issue on clicking link
I am using Angular 1.3 and I have an issue with angular routing.
The example given in angular documentation https://docs.angularjs.org/api/ngRoute/service/$route#example works fine when I tried. But ...
0
votes
2answers
9 views
Prevent same requests from being sent simultaneously when using Angular resource
I have a few components in one page.
Each of them fetches the same data from the server.
As a result, when the page loads, these components send the same request multiple times.
Is there any way ...
0
votes
4answers
23 views
Why isn't ng-repeat working here?
I have an array within my scope called checkedInChildren. The array contains just string values. I want a table to repeat for each string in the checkedInChildren array. Here is what I have so far:
&...
0
votes
0answers
14 views
Ui router $state unknown provider
I have a angular1.5 application with Typescript. I am trying to use ui router state. to load user token before resolving the route.
I get an error:
Uncaught Error: [$injector:modulerr] Failed to ...
-1
votes
1answer
18 views
Need help adapting code from jQuery to Angular
I found some code here: Textarea limit characters for each row in javascript
I want to use it in my project, but I'm having trouble figuring out how to make it work in Angular, particularly setting ...
0
votes
0answers
20 views
angularjs+spring cors error XMLHttpRequest cannot load No 'Access-Control-Allow-Origin'
error message (chrome)
OPTIONS https://.... URL
XMLHttpRequest cannot load https://.....URL Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header ...
0
votes
0answers
10 views
Font family style is not applying in android device?
Hi i have tried to add font family in select option ..
My Code
<button class="item item-input item-select myb2" style="height:27px;width:33%; float:left; padding-top:0px;">
<div ...
0
votes
0answers
6 views
what does angular do to the HTML5 video element when it's controller goes out of scope?
I have an SPA angular app that uses a separate controller for each of the main menu selections. I have an HTML5 video element in one of those menu controllers. So as I navigate between the menu pages, ...
0
votes
0answers
8 views
How to update array in firebase and this is the rigth way to create one?
I create a code to add infos in one array and after this store in the firebase
the result is a numeric id from array ex. 0..1..2..3
I'm trying to update field "atual" with different value from a
...
1
vote
1answer
24 views
Angularjs filter not working with ng-repeat
Angularjs filter not working with ng-repeat when I change filter value with a function... I am new to angularjs.
These are my html buttons from which the filter value must be changed with the ...
0
votes
0answers
4 views
how can i add roles in angularfire?
im new to angularfire and json in general, so im creating a new app and i added auth with angular-fire and ui-router. i used this tutorial and updated the code. this is my angular service.
(function()...
0
votes
1answer
15 views
improper url link in angularJs
I am working in MEAN stack. For my front-end, I am trying to render data of single item from my item list with angular. When I click the item, the URL changes to other than I have set and I don't get ...