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
1answer
6 views
how to change all the selected items background/class instead of change only one selected item in ng-repeat angular
How to change all the selected items background/class instead of change only one selected item in ng-repeat? The following is what i have tried but it doesn't work and doesn't show anything as well.
...
0
votes
0answers
9 views
How to populate select ng-options with JSON object that has an string array?
currently I have this JSON object:
{
"hospitalId" : "0002",
"name" : "test form",
"procedureId" : "0002-testform",
"steps" : [
{
"title" : "Brand",
"...
-1
votes
0answers
4 views
cordova VideoEditor plugin issue getting thumbnail from a recorded video. permissions?
I'm having a problem with Videoeditor plugin with cordova in android.
working with plugins:
cordova-plugin-camera 2.2.0 "Camera"
cordova-plugin-file 4.3.0 "File"
cordova-plugin-file-transfer 1.6.0 "...
0
votes
0answers
11 views
angularjs how to re-active all function
I have a page rendered by angularjs, most of events in it are ng-click.
On this page, there is an button "Print", when user click on that button, It will store current view to TEMP, then get html ...
0
votes
0answers
5 views
Change an event height in Angular-bootstrap-calendar by Mattlewis92
I'm trying to change both line height and event height to be equal in CalendarDayView template, but Iḿ not seeing a way of configuring these two unless changing all the JS and CSS file.
So I'm ...
1
vote
1answer
16 views
Error when testing Promise that contain .catch() methods
I have an Angular1 Controller that calls a Service which returns a promise. When adding a .catch() method to the controllers call to the service, mocha throws the following error.
TypeError: ...
-1
votes
0answers
10 views
Interactive Responsive Dynamic Webapp
What web tools/frameworks should I use to create a website with a table that can dynamically change (rows can be added, removed, and swapped)
I am currently overwhelmed with all of the possibilities ...
1
vote
3answers
22 views
AngularJS Updating Scope from Service model
I have this in my controller
$scope.activities = Activities.getAll();
$httpService.getActivities().then(function (response) {
var activities = response.data.body;
Activities.addMany(...
2
votes
1answer
18 views
angular resource is mistaken as C# MVC controller
I keep getting this error from ELMAH
System.Web.HttpException: The controller for path '/bundles/angular-resource.min.js.map' was not found or does not implement IController.
But the bundleConfig....
0
votes
2answers
12 views
Center Angular UI Modal in the middle of the screen
I followed the solution taken from here but it's not working. I need to center the modal right in the middle of the screen, both horizontally and vertically. I attempted in this plunk but it's not ...
0
votes
0answers
3 views
AngularJS directive not updating UI on rootScope change
I have this piece of code in my angular run block
$rootScope.$on('currentUserUpdatedEvent', function (event, user) {
console.log("EVENT FIRED");
localStorage.setItem("currentUser", JSON....
0
votes
0answers
7 views
Mathjax with angular / gulp - can't find files
I am using Mathjax in a project where the stack has Laravel, angular, gulp, bower, etc (standard tools) and I am running a homestead local server for laravel.
Mathjax is used in the angular app and ...
0
votes
1answer
19 views
Using attributes as text in angular component
I have this little component:
.component('obsbox', {
restrict: 'E',
templateUrl: 'app/components/interactions/html/interactions.obsBox.partial.html',
controller: '...
2
votes
0answers
25 views
How to mock and test a promise's output value from a service's method?
Prob easiest to test this via live example:
JSFiddle
Question:
Using mock data, how would I properly test the output of the PromiseService.getAllData method so that the output equals ...
0
votes
1answer
10 views
Serving sending NULL not being caught by $http request
The server I'm retrieving data from returns NULL when no data is found (I have no control over this server). The issue is the data isn't getting to success or error but just throwing an error. I want ...
0
votes
0answers
6 views
AngularJS Firebase database update a field by checkbox
I want to update the data in a table which displays Firebase database.
Each line in the table represents one particular user's data. My goal is to be able to update the data in one field of a user ...
1
vote
3answers
21 views
Twitter Bootstrap Columns and Angular Order By
I keep running into this problem and haven't found a good solution that doesn't cause layout issues. What's the best way to display an array of items, sorted alphabetically, in columns? I'm using ng-...
0
votes
1answer
17 views
Window scrolls without triggering touchmove
I am working on this AngualarJS app on a touch device and there is a place where I am disabling scrolling through attaching a handler on touchmove. However, I have tested the device and can verify ...
0
votes
0answers
7 views
angularjs dynamic ROOT url
I'm trying to achieve dynamic root routing with angular ui-router.
For instance, i need to be able to load these pages dynamically:
http://www.domain.com/user1
http://www.domain.com/user2
http://www....
0
votes
0answers
10 views
$routeparams parameter when specifying template in ng-include?
I'm trying to use an ng-include in a view that specifies a template. It looks something like this:
<div ng-if="editing" ng-controller="testcontroller" ng-include="'/Content/Templates/Test.html'"&...
0
votes
0answers
5 views
Why scope.$watch(ngModel,render) is used ,instead render() is sufficient?
tableview.html
<div data-ng-app="directivesModule"
data-ng-controller="CustomersController">
<h3 ng-click="addCustomer()">Table Helper with ngModel Directive</h3>
...
0
votes
1answer
26 views
Avoiding multiple nested loops
How can I achieve the below without nested for loops:
invitations is an array with the following structure:
INVITATIONS:
[{
"id": "TDK4QP788FOLMHQSZAFSYVVQ182RGM83",
"date_created": "2016-...
1
vote
1answer
29 views
Retrieving the Principal in a RESTful WebApi method
I am new to RESTful services using WebApi. I have a front-end web application that uses FormsAuthentication to authenticate users. I am able to use the User.Identity property without any problems in ...
0
votes
0answers
8 views
Nesting issue with angular-ui-router Angular 1.5.8
I have the following parent-child route:
{
name: 'games',
url: '/games',
component: 'games',
resolve: {
games: function(GamesAPICall) {
console.log(GamesAPICall....
0
votes
2answers
16 views
Observables and Subscriptions
Can anyone explain to me Observables? They keep referring to observables as like promises. If I can call a method and return data, why do I need an observable?
2
votes
0answers
6 views
laravel 5.3 passport and angular storing access tokens
I am authenticating users to consume my own API (so a trusted source). What I am struggling to identify is where is the best place to store the return access_token on the client side? Do I create a ...
2
votes
1answer
31 views
HTTP request from angular will send with method OPTIONS instead of POST
I'm trying to send some HTTP requests from my angular.js application to my server, but I need to solve some cors errors.
The HTTP request are equal to this sample:
functions.test = function(foo, bar)...
0
votes
0answers
10 views
AngularJS Firebase database ng-repeat filtered data into ngtable with ngTableParams
I filter one Firebase database based on another and concatenate the result into one $scope and ng-repeat the $scope array projectslist in a ngtable with ng-repeat="obj in projectslist", which works ...
0
votes
2answers
15 views
Converting value dynamically from view to scope
I want to auto translate the language of every menu title from the view by a session that user have in his profile. The method that I need to use is by using our API Library that we have in our php ...
-1
votes
1answer
11 views
unable to carry form field data to next html page using angular js
Hello all i am trying to carry one of the field value from one html page to another using angular js. Below are the code snippets
HTML:
<body ng-app="myApp">
<div ng-controller="...
0
votes
0answers
9 views
How to display a Word Document in AngularJS that is stored in SQL Server as a base 64 encoded string
I'm trying to display a Word Document in AngularJS that is stored in SQL Server as a base64 encoded string and I'm not quite certain how to go about it. Here's what I have so far:
I'm using a $...
-1
votes
0answers
9 views
AngularJS 1.x Socket.IO proper implementation
I've got a question about proper implementation of listening part of web socket system.
Where should I put every listening instructions I mean e.g.
this._webSocketClient.on('some-channel', 'someEvent'...
-1
votes
1answer
38 views
About the usage of `this` in javascript
I just wrote one module like this:
(function(){
'use strict';
angular.module('myApp.dashboard').controller('mainControl',mainControl);
mainControl.$inject = ['whichToShow','authService'];...
0
votes
1answer
10 views
How to go to a new view from within an ion-slide-box - Ionic
I am working on a Ionic project where I implement ion-slide-box. This ion-slide-box has a total of 12 slides.
My question is how to achieve going to a new view when the user is on the last slide (...
0
votes
2answers
18 views
Check access token before http request
I'm creating an app using Angular 1.5.8 and Laravel 5.2. I'm using a library by Luca Degasperi to create Token Based Auth
Via Angular I make a call and I receive access_token, TTL and refresh_token. ...
0
votes
0answers
15 views
Are there any angularJS modules for IP subnet calculation?
I have question about IP subnet calculation in angularJS.
I searched the internet for directive or any other easy to implement in AngularJS module that will provide me easy calculation of network,...
0
votes
0answers
11 views
Generate fullstack application using yeoman fullstack
I want to generate a fullstack application and I was thinking of using a yeoman generator. I tried using the latest version of yeoman fullstack generator and I generated the project but I don't ...
0
votes
1answer
27 views
Add html to title in popover (angular bootstrap)
How to add html to title in popover? In documentation I can found only using html in content. It is possible to add html to title? I know that I can style this in css but I want to add button to title....
0
votes
0answers
18 views
Is there a way to modify content being pasted in textAngular?
When someone pastes content copied from a website or even a word document, textAngular adds additional break <br> tags before and after the content.
I'm using textAngular like this:
<text-...
0
votes
0answers
6 views
yOffset in $anchorScroll does not work correctly with overflow auto
I am new with Angular 1.5 but I have faced with problem:
I have done https://plnkr.co/edit/gUjFpwQyF5ZGBRyOaSPj?p=preview like in this example but I have one div block with overflow type auto and I ...
0
votes
1answer
22 views
Call to Compile Multiple JSON Files in One
Now, this might be theoretical question and since I'm still learning AngularJS, please forgive me dumbness.
Is there a way to make Angular to call lets say 3 json files, from various locations, and ...
1
vote
2answers
34 views
How can I use a service or global function in the @Component declaration?
I have a service that helps with some routing issues related to my environment and now I need to cope with template routing issues
Ideally I would be able to do something like this:
import { PathSvc ...
2
votes
1answer
31 views
How to update Angular scope properties when they are passed into directives?
I have functionality where developers can add custom Angular views where they can bind properties to the $scope.settings object. When clicking on the save button the $scope.settings object will be ...
0
votes
4answers
33 views
Insert HTML with AngularJS code inside
any help about who insert html with Angular code inside the html string.
Example:
<div class="container">
<span class='btn' onclick="javascript: clicklink()">click here</span>
&...
0
votes
0answers
7 views
Angular JS : iframe not working in Firefox and IE 11
I'm having an iframe in an uibmodal, to which I'm providing a static HTML path (in the same domain). The URL works correctly in Safari, Chrome and iOS Devices. However, it doesn't load in Firefox and ...
0
votes
0answers
4 views
Angular-wizard; Accessing data
I'm using Angular-Wizard 0.9.0 and I'm have a hard time accessing the data that has been collected via the forms in my views. I have tried accessing context as suggested but that is not working. No ...
0
votes
2answers
12 views
How To Resume and Ionic App If Pause Lasts Less Than 5 seconds
I have an app that I want to apply the cordova "pause" and "resume" functionality to. I have the "pause" implemented. Inside the "Pause" listener, I log the user out. What I need is to only log the ...
-2
votes
1answer
23 views
Failing to load an angular module
I'm a complete angular noob so I'm following some tutorials, using Angular 1.5.8; right now, following a video about the angular-local-storage module I get this error:
Uncaught Error: [$injector:...
0
votes
0answers
9 views
MEAN App with multiple websites
We are developing a CRM app/platform using the MEAN stack, where users can centralize their client/products and website management in a single application. For example, if the user's company is a car ...
1
vote
0answers
8 views
Ionic/Angular ng-repeat keeps requesting the data after I left the view
In an Ionic app, I have a (hidden) tab with a list populated with ng-repeat:
<!-- ng-repeat that gets its items through a function -->
<ion-item ng-repeat="product in getProducts()">
//...