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
4 views
Is that possible to put web code locally when building hybrid apps using native language?
My friends and I are building an app using native language on ios and android page. We want to use one or two pages using angular/ionic. I have wrote some ionic pages which are invoked by native ...
0
votes
0answers
4 views
Unit Testing a Confirmation Popup Ionic Framework Karma
How should I go about testing both results of a confirmation box using karma and jasmine? I have some basic tests running, thanks to a helpful individual on here, but I'm having a difficult time ...
0
votes
2answers
11 views
PHP or Javascript - How can i automate the download info from csv and show on webpage?
I have a webservice link . e.g www.xyz.com/abcdefg, when i go to this link, it will download a csv file..
CSV file will show the data in columns like below;
Column A Column B Column C ...
1
vote
2answers
9 views
Is there a way to allow user accounts (sign up+register) with just javascript (angular frontend and node,express server code)?
Most of what I've found uses php, or something similar.
I have an Angular frontend, and Node/express server code. No backend yet. I'm not sure how to proceed with user sign-up.
0
votes
0answers
8 views
angular 2, ngFor not working with error in console
I'm trying to follow a tutorial. This is a simple page which displays courses. I'm getting below error in console. Angular 2 dependency is "angular2": "2.0.0-beta.7". I have tried using '#' in stead ...
0
votes
0answers
5 views
How to show a “popup” Ionic View whilst maintaining background state?
I want to show a fully-fledged view with controller on my Ionic app, except it needs to pop up on top of my current open view, with the currently open view in the background.
Once it pops up, I want ...
1
vote
0answers
6 views
Pass an object as part of ng-map marker
Using markers in ng-map with angular JS
<ng-map zoom-to-include-markers="auto" default-style="false" class="myMap">
<marker ng-repeat="Customer in ListForDisplay" position="{{Customer....
0
votes
1answer
17 views
angular $stateProvider not routing as expected
In my main index.html file I have the following simple markup...
<body ng-app="starter" ng-controller="AppCtrl">
<div ui-view></div>
</body>
In my app.js I am using $...
0
votes
1answer
18 views
Angular2 component vs Angularjs Diractive [on hold]
Is there any similarity or Difference in between these. I have started angular2 application development, I see these are pretty similar and common in angular2 and angularjs.
At the same time angular2 ...
0
votes
0answers
2 views
protovis pvc object keeps cache after leaving page
I am using protovis framework with angularjs to draw charts for a dashboard, but when I try to leave the page that contains charts some of this charts appear in the next page, see attached screenshot....
0
votes
0answers
8 views
Require multiple mainjs that contain angular module with controllers names using require js
I am using angularjs with requirejs, i have a layout twig that include main assets and menu links, i need to require the mainjs that control the menu and require other mainjs in custom pages that ...
0
votes
1answer
20 views
Sequential promises
I need to get four response's promises, but to do this I first have to call every function in sequence, from the first to the last. You can see from my code that I call the next function in the ...
0
votes
1answer
22 views
How to get things display on HTML in Group
I have a SQL query
Select * from product where SELLER_USERNAME<>'A' ORDER BY GROUP_NAME;
The Output of my sql is something like this:
ITEM_DESC | ITEM_PRICE | Group_Name |
| 44 ...
0
votes
0answers
7 views
Querying over multi entry index with IndexedDB & AngularJS
I'm using an IndexedDB DB in my offline app together with this repository.
One of my stores is multi entry, in which every key of the index is, according to specifications, an array of strings ["John"...
2
votes
2answers
12 views
Unknown Provider: $scopeProvider When Testing Angular Controller With Jasmine
I am trying to implement unit testing for a particular controller of a web app using Jasmine and Karma. At the moment it is giving the following error:
Chrome 53.0.2785 (Mac OS X 10.10.5) HomeCtrl ...
0
votes
1answer
16 views
How to run a function attached to an angular controller just once in a binding
I attached a function to the scope, and i wanted to run it in a binding, like this:
var myApp = angular.module('myApp',[]);
function MyCtrl($scope) {
var count = 0;
$scope.f = function () {
...
0
votes
1answer
16 views
Angular directive load orders: Unknown Provider when used in Controller
I am trying to use a directive, click-anywhere-but-here, in my header HTML, using controller navCtrl. Angular is throwing error:
Unknown provider: clickAnywhereButHereProvider <-
I'm thinking ...
1
vote
1answer
27 views
How to create the routeProvider for URLs with question mark?
Overall my URLs follow the standard http://sitename/something#/rounds/2
The "when" to routeProvider goes like this:
.when('/rounds/:param', {
templateUrl:,
label:,
})
Ok, but now I have an ...
0
votes
2answers
12 views
AngularJs Routing with parameters
Can someone explain how I can route to a Url using parameters?
E.g. id like to click on a product and open more info of the product by Id.
My Routing so far ...
angular.module('shop', ["...
0
votes
0answers
16 views
Angular: Dynamic UI components switch?
Can I build dynamic UI without using Angular-UI.router ?
Here is the scenario .. Let say I have 3 components A, B and C. (ng 1.5xx).
As initial setup with the normal router I have something like ...
0
votes
0answers
12 views
$stateChangeSuccess does not fire on state change or page load
I have an app, loosely based on meanjs.org (changed to used HAPI and waterline). I will caveat, I don't code daily as career, so I'm not as proficient as many, but I love it, and I am proficient ...
0
votes
0answers
7 views
Directive 'recompilation' into another
I'm wondering if there is an easy way to accomplish this kind of attribute directive:
<p my-attr-directive="ABC">go to ABC</p>
should be recompiled in a ui-router parameterized link:
&...
0
votes
0answers
13 views
Local database for angluarJS project?
I'm trying to make a small app for learning purposes in AngularJS that will have users register and log in before doing anything. What are some options I have for storing user information so that I ...
0
votes
0answers
5 views
Is it possible to add swipe control with ngTouch to angular bootstrap pagination?
I'm using ui.bootstrap.pagination and would like to be able to navigate through the pages by swiping left and right on mobile devices.
I use the pagination on my website to imitate the look of a ...
0
votes
0answers
7 views
Spring + Angular GET not registering
I'm trying to add a simple functionality to the home page that displays the currently logged in user. I'm sending a GET to the /user endpoint which returns the principle. This Angular learning curve ...
0
votes
0answers
11 views
insert into an existing attribute in json with angular (nested json)
So in my application I have small blocks of info called suntis. Each sunti can have .tags, .author, .ancestor, .short_id, and some other attributes.
Say I have a sunti with the following
sunti_one =...
1
vote
2answers
17 views
routeParams doesnt inject into my controller?
I was looking at some how-tos on doing angular-routing and to pass parameters into a controller. This is what i did:
.controller("myController", ["$scope", "$routeParams", function($scope, $...
0
votes
0answers
5 views
How to store a JWT token inside an HttpOnly cookie?
I have created an app that simply uses a jwt sent by the server upon correct login credentials, and auhtorizes against any /api route on my backend express server.
Angular, on the other hand, took ...
1
vote
0answers
12 views
firebase database child reference issue
I am trying to create a meeting firebase reference inside my parent users
I am implementing this line:
var meetingRef= firebase.database().ref('users/' + $rootScope.currentUser.$id).child('meetings'...
2
votes
2answers
33 views
Rootscope not accessible in function
In the code below I log to console the $rootScope and it logs undefined.
Why does it happen?
$scope.init = function ($rootScope) {
// var s = $cookies.get("arr");
// var ex = [];
var ex ...
1
vote
0answers
9 views
Failing to load the angular directive with in ionic project (plunker included)
I am trying to load the register directive inside the ionic project but strangely it doesn't load. Here is the plunker. Please point me in the right direction.
Example:https://plnkr.co/edit/...
1
vote
0answers
16 views
Angular 2 + ng test: 'X' is not a known component
I created a new project with Angular 2.0 RTM with Angular CLI 1.0.0-beta 16:
ng init
and then ran:
ng generate component my-new-component
and then ran:
ng test
and got this:
'app-my-new-...
-2
votes
0answers
19 views
Can I make html template work with angular 2?
I used this html template for my project and modified it according to my requirements. Template: https://themeforest.net/item/limitless-responsive-web-application-kit/13080328
My client wants me to ...
-5
votes
1answer
39 views
How many days it will take to be a professional frond end developer from the beginning if I give full time effort? [on hold]
I know the basics of HTML and CSS. Now I want to be a front end developer. And a highly paid upwork freelancer. Now I wanna know how many days/month it will take to be professional at the front end ...
1
vote
1answer
22 views
AngularJS insert data twice to database
I am trying to insert data to database through angularJS but the data inserted twice.. I have tried to use ngRoute but still I face the same problem.
app.js
var app = angular.module("addDepApp", [])...
0
votes
1answer
18 views
How javascript select remote-data.service
I bought an app. I'm new with Javascript and AngularJS. I'm trying to following the code but I don't understand how the function on homeService.js knows that has to use remote-data.service.js
This is ...
1
vote
1answer
17 views
Cannot inject one app module into another AngularJS
I have an Angular App consisting of two modules (two pages), one is login and the other rest of the application.
So that I have the following on my login.js file :
var app = angular.module('...
1
vote
0answers
16 views
Troubles downloading a pdf from PHP and getting it with AngularJS
I hope you're good!
I have an REST-API with PHP (Flight-PHP as framework) running in one server and I want to download a PDF saved in the server. But I'm having troubles with that.
The API resource ...
0
votes
0answers
10 views
How to make parts of an image separately clickable and changeable -how to create a 2d/3d designer with html5 canvas or something else? [duplicate]
I want to create a 2d or 3d designer for handbags (where users can create their own bag by clicking on parts of he bag and choosing the color or material ) for example like on shoesofprey.com I was ...
-5
votes
1answer
31 views
Converting a HTML template to Angular 2 [on hold]
recently my company purchased a html template and it looks like this
Is it possible to convert this template to angular 2? If yes, please point out where could i get start on this. Thank you.
How ...
0
votes
2answers
16 views
login form in angular.js
I was trying to implement login form by authenticating the credentials from data stored in json file. But i'm getting error like only first case is working.It's just a demo application trying to learn ...
0
votes
0answers
17 views
Images overlapping with side menu bar in Ionic
I'm building an android app based on IONIC framework.
I have made 3 divisions with images and shadows in each of them .
But the side menu bar is ovelapping with them.
I tried setting position:relative;...
1
vote
0answers
10 views
DB query vs updating $scope variable in AngularJS & IndexedDB
I have a 3-step process in my offline app running on AngularJS & IndexedDB.
On page load I make a DB call to list all records with today's date (into a recordlist variable):
$indexedDB.openStore(...
0
votes
0answers
14 views
Implementing 'Sign in with Google' feature on Angular app with Passport.js
How do I implement a 'sign in with Google' feature on an Angular (MEAN stack) web app? Once I click 'Allow' on the Google sign in page, the page is unable to redirect to my site, instead it just ...
0
votes
2answers
13 views
Angular JS Controller not working while using with .js file
I'm New to Angular JS. I'm trying a simple Example but it seemed to be not working.
I created a script.js with following code:-
var myApp = angular.module("myModule", []).controller("myController", ...
1
vote
1answer
23 views
Separating angular modules into components
I first had everything into one app.js but this is not a good approach. So I wanted to separate into different files, and I thought the best way would be making 3 different files (since I just have ...
3
votes
1answer
18 views
How to use angular component with ui-router?
I am trying to use components (instead of controllers and templates) in ui-router. But this isn't working.
I'm following this article from their website.
Plunk
html:
<body ng-app="myApp">
...
0
votes
0answers
12 views
What is the best way to send reordered list as parameter to a function in the example?
`http://jsfiddle.net/SSSUUUSSS/Bsusr/1/`
The example is taken from here
0
votes
1answer
14 views
415 Unsupported Media Type AngularJS to SpringMVC Controller
I'm getting this error when trying to post JSON data from angularjs controller to SpringMVC controller. I've tried a lot of solutions posted here and some other stuff available on the net as well. I ...
0
votes
0answers
6 views
Linking the drop-down items and description of it using ionic
Im trying to create a list box with a small description. When a item from the list is selected, the description box must give a description of it. So the problem I face is here I don't know how to ...