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 apps are also frequently known as Single-Page Applications. The ...
0
votes
0answers
6 views
How to use Angular ng-style
I'm trying to set a image to a div with ng-repeat and works fine with other elements in my array but not with the image
<div ng-app="myStoreApp" ng-controller="myCtrl">
<div ...
0
votes
0answers
3 views
Getty Images - Constructing a request with Angular
This is the very last part for a tech test I am doing with a company and would love to learn how to do it.
I'm new enough to Angular (and linking from JSON). I've been given a challenge to get ...
0
votes
0answers
3 views
How to I use definitely typed(d.ts) files?
I am developing an Angular2 web application and I want to incorporate the Google sign in feature. The specific file is this one; gapi.auth2.d.ts.
I have installed it in my project by using this ...
0
votes
0answers
3 views
SQLite for Ionic returning error
I'm using Firefox and Chrome for development. I installed the sqlite plugin but there's always error when firing openDB command on:
firefox(TypeError: n.sqlitePlugin is undefined ng-cordova.min.js ...
0
votes
0answers
16 views
How to delete a array value into a resource?
I have the next service:
function Lawyer($resource, BaseUrl) {
return $resource(BaseUrl + '/lawyers/:lawyerId',{lawyerId: '@_id'});
}
Then, in my controller, I have the next code for delete a ...
0
votes
0answers
8 views
Why can't Travis Build not find my Angular Modules?
I have an AngularJS 2.0 build which runs locally fine. I am trying to get CI to work with Travis-CI. I am using this repo, here is the build log. I am getting loads of errors like this:
...
0
votes
0answers
3 views
How to make ngInfiniteScroll retrieve data by createdAt Descending
I'm using firebase to save posts that have the following data:
createdAt: "Sun Apr 03 2016 18:32:46 GMT-0300 (BRT)"
What I'm trying to achieve is to get the most recent posts first and then load ...
0
votes
0answers
16 views
Can't find bootstrap file in Angular app
I'm building an Angular on Rails app following a tutorial.
I'm having problem with front-end dependencies in Rails project.
I installed bower and sprockets to install the dependencies like following:
...
0
votes
0answers
6 views
Angular and Express routing with html5mode enabled
So my question is: how could I make angular and express routing work together with html5mode enabled? When I change state from '/' to my admins state I get list of all admins and everything is fine ...
0
votes
0answers
3 views
How to trigger a function when a MongoDB Cursor property is changed? (Angular-Meteor)
I don't know if i titled my question correctly but here is what i want to achieve and what i have so far (simplified as much as possible):
What I have so far:
For each Visitor I create a "Visitor" ...
0
votes
0answers
8 views
Google maps Direction.Route Query Limit Exceeded
So I know the general issue of directionServices of not to exceed the 10 calls. But Im really trying to figure out what I can do as an alternative.
Right now I am using a for loop as so,
...
0
votes
1answer
20 views
Angular html file can't find JS controller [Node.js/Angular]
Here's the files/folders in my project all in the same folder.
Github Repo for the project: https://github.com/JohnsCurry/learnAngular
Just to prove they are all in the same directory. Sorry I don't ...
0
votes
0answers
11 views
Angular JS select folder to save dialog
I am using AngularJS and Javascript, so I am trying to get the functionality where the user clicks on save as button and get a popup open, then he can select a folder / folder & file name that ...
0
votes
0answers
11 views
Using AngularJs dynamic directives for custom view
I'm using a server side generated JSON to populate a custom view using different directives with Angular 1.2.29. I have a couple of questions regarding what is the proper way a doing this considering ...
0
votes
0answers
2 views
Angular Material md-select not displaying md-options and freezes page upon click
I just updated the version of Angular Material I am using to 1.0.6
Now when I use md-select + md-option, although all the correct options and corresponding md-option DOM elements display in the ...
0
votes
1answer
14 views
Redirect to another HTML page in AngularJS on button click (Ionic)
I am trying to redirect to home.html on click of a button in index.html
index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" ...
1
vote
0answers
10 views
Twitch API - Chrome is cancelling request to Auth Page
Im using .NET MVC 5 with a self written API Wrapper for Twitch.
The Profile Page thats showing the twitch information is an angular app.
So if the user has not yet added an Twitch Profile my Server ...
0
votes
1answer
18 views
Controller $scope vs. this [duplicate]
I'm pretty new to Angular, so forgive me for the remedial question. I've searched SO briefly for an answer, but can't seem to find one directly related.
In most examples, I've seen $scope passed ...
-1
votes
0answers
18 views
Set the class on selected radio button
I have exactly the same situation like here except select options I have radio buttons.
Html
<body ng-app="switchExample">
<div ng-controller="ExampleController">
<div>
...
-1
votes
0answers
18 views
Angular JS- Setting a ng-model attribute value in a $scope.function()
I am new to angular JS and need help.
I have a customer form(customer.html) where customer enters data that is being stored. I stored the values using service and displaying them with an additional ...
0
votes
0answers
24 views
Angular loop through all the objects inside $scope
I have a requirement where I need to loop through $scope and inside $scope loop through all the objects, arrays and print there key value pair, I would not know beforehand the name of each object or ...
0
votes
0answers
5 views
Integrate ngBoilerplate with QuantumUI and AngularJS
I'm new with AngularJS and I'm trying to use ngBoilerplate with QuantumUI framework.
So, I started by adding the css and js dependecies to the file build.config.js:
vendor_files: {
js: [
...
0
votes
1answer
25 views
AngularJS: Event in one controller updating values in different controller
I have been following several examples here, but am not seeing the same results. I have two controllers one for a dropdown and one for a table. When a user selects an item from the drop down a factory ...
0
votes
1answer
12 views
Download a PDF file in a folder with the same name as that of PDF in angularjs
I want to have a functionality like on a button click I am able to download a PDF say 1.PDF but that PDF file should download into a folder named 1 and not just outside on desktop etc. How can we ...
1
vote
1answer
11 views
AngularJS: ng-class for dynamic base64 encoded image as background-image
Anyone managed to use ng-class for placing dynamic base64 encoded images as background-images for a div yet? Seems to work for JQuery (see Is there a way to set background-image as a base64 encoded ...
0
votes
1answer
24 views
ng-repeat not working with merged array objects
I have this based on the ydn-db package:
var db = new ydn.db.Storage('Trans');
var iter_supplier = new ydn.db.IndexValueIterator('stops', 'stop_id');
var iter_part = new ...
1
vote
0answers
6 views
Testing factory function with jasmine using karma
I have a factory method, that makes call to the backend and return promise, on success of the http call the function return the value, and on error rejects the promise.
function(){
...
0
votes
1answer
14 views
electron quick start application not working
I'm new to electron and trying to follow different tutorials. Currently I'm following this link to Write my First Electron App
my app is structured like this
your-app/
├── package.json
├── main.js
...
0
votes
1answer
13 views
Directive template does not show in view
I try to make my first directive and I use this page to get started: https://docs.angularjs.org/guide/directive
The directive seems to be loaded but the element it should create in my view does not ...
0
votes
1answer
19 views
Setting table td element to a custom angular directive
I want to update a td of a table to utilise a custom angularjs directive.
I have tried td.innerHtml = "<my-directive></my-directive>" and the html for myDirective is
...
0
votes
0answers
12 views
CORS Header in Firebase.json not working
I have hosted my application to firebase.
My application is implemented using AngularJS and using firebase database.
I need to connect to third party for integrating payment gateway.
Now the obstacle ...
0
votes
0answers
11 views
Incorporating UI router into Angular app
I'm building an app with Angular and am trying to use UI router for nested views. Have been trying for a while but am getting errors each time (latest is
Error: $injector:modulerr
Module ...
0
votes
0answers
11 views
filtering data so that it works with angular-gantt
So, I'm working on a MEAN stack project as a single page app that uses angular-gantt. The app lets users create records that can have to/from dates along with a bunch of other custom fields. By ...
0
votes
1answer
21 views
cannot access $scope variable out side a function
I have a variable defined in a controller:
app.controller('myController',['$scope','ajaxCall',function($scope,ajaxCall){
$scope.interviewer = {};
ajaxCall.get(/* A url ...
0
votes
0answers
14 views
Javascript, angular: validate user input with font
Background:
need to allow user to select a desired font (available via Google fonts library) and to then enter input into a textarea. Their font selection and input are then sent as HTML to a 3rd ...
0
votes
0answers
9 views
How to hide the Google client_id in Angular2 typescript
After following the steps given in the Google Sign-In for Websites and Angular 2 using Typescript question, I am now able to retrieve a user's name and email from their Google account.
The only ...
0
votes
0answers
14 views
How to combain two inline functions in ng-class [duplicate]
How can I declare below given two ng-class in one:
<ion-item class="item-positive item-text-wrap"
ng-class="{active: isGroupShown(faq)}"
ng-class="isGroupShown(faq) ? ...
0
votes
1answer
10 views
AngularJs scroll: how to “see” the scrolling effect
I have this website in which I have a menu and onclick on the item I go to the section with that id.
My menu items are:
Home
Biography
Curriculum Vitae
Gallery
Video
Press
News
Contact
and my ...
4
votes
2answers
21 views
Animating new data as it arrives in Meteor
I'm new to meteor and minimongo so i'm a bit lost as to what to do , i've done research but couldn't find much since i'm using angular+meteor and not blaze.
I have a collection on my server that is ...
0
votes
0answers
14 views
AngularJs and Bootstrap : Progress bar and Pop over issues
currently in my xhtml page iam displaying both Popover on click of a button
and also tile view with a progress bar in it.
But when i used the below code
<script ...
-2
votes
0answers
11 views
How should I load files into my Java application from Angular? [on hold]
How should I load files into my Java application from Anjular ?
0
votes
1answer
17 views
create table with AngularJS ng-repeat
I was trying to use ng-repeat to create a table, but I couldn't figure out how to get it to work. My best attempt was the below.
<table ng-repeat="j in [0,1,2,3,4,5,6,7]">
<tr>
...
0
votes
1answer
35 views
ng-repeat just doesnt work
<div ng-init="offers = [
{state:'Zabiorę', from:'Warszawa', to:'Wrocław', date:'30/04/16', size:'S:8 M:4 L:2 XL:0'},
{state:'Wyśle', ...
1
vote
1answer
26 views
AngularJS: How to make a fluctuating progress bar?
I want to make a progress bar that starts from 0 and increments up to the max in a certain period of time. When it reaches max, it increments back down and repeats the process. Here is my attempt.
...
0
votes
0answers
9 views
Creating an authenticated Angular site using WP-API
So I'm creating a new frontend for my site because I'm sick of using PHP and wanted to try the new WP-API now that it's version 2. I'm using Angular 2 to create a frontend client. So far, I've been ...
-1
votes
0answers
9 views
Ionic ISBN highlighted
I have a view in Ionic which contains an ion-list with every item having an ISBN number as title (h2). My problem is the ISBN is underlined and blue as an hyperlink (this would be solvable with CSS). ...
1
vote
1answer
37 views
Data Not displaying in ionic and angular List
I am new to ionic and angular. was trying to create a list with json data
{"menu":[{"name":"Mixed Veg Wrap","image":"mix-veg-wrap.jpg","category":"WRAPS, Light ...
-1
votes
0answers
11 views
ng-src attribute of video tag doesn't work
I am working on a mobile app, using Ionic framework and I want to play video in a mobile app. I have a list of video's and I am using video tag for playing the video.
ng-src with full path works ...
0
votes
1answer
18 views
Java/AngularJS - Throw exception that shouldn't appear in browser console
I have a login service, written in Java. When a user tries to log in with bad credentials, I want to display a message. The java service throws an exception when the credentials don't match but this ...
0
votes
0answers
11 views
How can parent scope access child scope in Angular JS using ES6?
I have a nested directive. I need to access the value selected in child directive from parent directive.