Tagged Questions
AngularJS (a.k.a. AngularJS 1) 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 ...
0
votes
1answer
14 views
Angular: $q.all not working on a map
I need to execute something only after a multiple of AJAX calls got their response so I'm using $q.all to wait until all promises were
var promises = myServices.map(function (service) {
...
-3
votes
0answers
4 views
Using typescript: How to do drag & drop custom element between two container. (URGENT PLZ)
I'm new to angular 2.
Using Typescript
Please help me how to make drag & drop elements between two div container.
> It's very urgent plz..
0
votes
3answers
23 views
Nested json loop in angularjs
I have a json given below
var returnObj = {
"subscriptions": [
{
"subscriptionId": "ef94e4226e2b1a3c218ae5bd07273726",
"productId": "WBP",
"plans": [
{
...
0
votes
0answers
13 views
Ionic Framework AngularJS - Cannot call services
I am creating a mobile Apps using the Ionic Framework. I am not sure why the app.controller('DrawObstaclesCtrl'... under the bindEvents function (Please see the code below) cannot be invoked. However, ...
1
vote
0answers
9 views
Laravel 5.1 DB::table chunk for a Restful API and Angular.JS
Is there a way to chunk millions of records in a Restful API call?
I am using Angular.JS / Ionic for the client and have a restful API that works great with smaller number of records about 10,000. ...
-1
votes
0answers
3 views
Google Maps AutoComplete place_changed with Cordova, Angular & Angular Material
I am trying to implement google.maps.places.Autocomplete on my Cordova App that is built with AngularJS and Angular Material. I am able to get the Auto Complete list the places but on tapping on the ...
-1
votes
0answers
10 views
How to make use of pace.js with angular ui routing to display progress bars on top whenever i shift to one page to another page?
I just wanted to display a progress bar on the top whenever I click a link, in the page till it loaded fully.i have used angular-UI routing to avoid page refreshing, and i want to use pace.js to ...
-3
votes
0answers
8 views
How to record voice and merge with silent video file? [on hold]
I want to make a system that will do
Option to record your voice
Select a silent mp4 file
megre these two files
shows an output as merge two files
save that output to the server
-1
votes
0answers
6 views
Retrieve uploaded files using AngularJS MVC
In my first angular+MVC project ,
I have successfully uploaded the files, which is connected with parent record.
Unique ID of the filename is stored in database with its parent ID.
Now , I am ...
0
votes
0answers
23 views
How to use angular to collect many form submits and submit at once to mongoose model?
I am trying to save surveys that contain multiples questions. One survey has many questions. Likewise there must be many surveys. Each time I enter a question and the answers and click the ...
0
votes
1answer
30 views
AngularJS routeParams - file not found exception
Following is my example
var myApp = angular.module('MySampleApp', ['ngRoute']);
myApp.controller('SampleCtrl', ['$scope', '$routeParams', function($scope, $routeParams) {
$scope.employee = {
...
0
votes
0answers
17 views
I need a Javascript Observable to work with sequential Ajax calls
I'm using the routing tutorial for Angular 2 as the base for a project. In its code it fakes a login.
LoginComponent:
login() {
this.message = 'Trying to log in ...';
this.authService....
0
votes
0answers
9 views
Angular Meteor login-buttons not showing
I'm trying to show the accounts-ui on my Meteor app that is written in Angular, but the dropdown isn't appearing like it does in the Meteor Tutorial. Can anyone figure out the problem?
In my (...
1
vote
0answers
17 views
Angular 2 - Routing with ASP.NET MVC
I am trying to use ASP.NET MVC (not core) with AngularJS 2 and having some issues with the routing.
First in RouteConfig.cs, I have following routes defined
routes.MapRoute(
name: "Default",
...
-4
votes
0answers
23 views
What programming language to be used? [on hold]
I was an ASP.NET forms developer. Now the new concept of MVC is all over the market.
There are multiple technologies to used like ASP.NET Core, AngularJS, MongoDB etc.
All my team is new to these ...
0
votes
1answer
14 views
Randomly play audio variable
Before I enter the view, I want the controller to randomly choose an audio file and play it. I honestly have no idea where to even start.
Controller:
var audioone = new Audio("img/1.mp3");
var ...
-2
votes
0answers
12 views
Type script , angular js
Can please help me with the below requirement using typescript and angular js 2.
How to show some particular data of a table row in specific color [like red]
Thanks
0
votes
0answers
10 views
'No matching records found' when using bootstrap-table in electron with angularjs
I am developing a desktop app with angularjs and electron, and i want to load a simple bootstrap table with data from an $http call. But I always get a 'Not matching records found', I has been trying ...
2
votes
1answer
32 views
What does #! mean in ui.router?
I am using the Angular ui.router to navigate through my application.
Usually, the url should look like this:
http://localhost:8001/#/start
But in my case, it looks like this:
http://localhost:8001/#...
1
vote
1answer
19 views
AngularJS: Array and deep $watch doesn't work
I have an array with boolean values and what I need to do is try to use the $watch function in order to show a message when some change happens in the array.
As you can see in this code the array ...
0
votes
1answer
14 views
Is Angular Js Code Visible On Browser In Mean Stack Development?
Recently I read great article about mean stack development . As in node js , script render on server side and not visible in browser . My question is that " Is script of angular js visible on ...
1
vote
1answer
20 views
Angular 1.5+ component optional one-way binding confusions
Taken from the AngularJS 1 documentation:
You can also make the binding optional by adding ? : <? or <?attr.
How does the optional one differ from the non-optional one for the one-way ...
0
votes
1answer
15 views
Angular Material Datepicker is empty
I am currently building a web application with Angular and I am using Angular Material for some UI components.
Currently, I have an issue that I can't resolve. When I use the datepicker like described ...
0
votes
0answers
22 views
How can I update values inside a custom Directive in Angular?
I am very new to Ionic and Angular and I am having hard time working with modules and Directive.
What I am doing in Ionic is a signup page where there is a google map the user will use to select ...
0
votes
3answers
18 views
AngularJS - Run setInterval() inside $routeChangeStart
I am using setInterval() to check (every couple of seconds) if a user's token has expired. However, because I have included inside of $routeChangeStart, the interval runs each time the route changes. ...
-5
votes
1answer
33 views
Is there anyway to increase MVC controller performance in MVC angularjs [on hold]
In my project I used MVC and angularjs together.
First time angular controller run MVC controller it take about 5 to 6 seconds but after this each call only need about 150 to 300 ms
Question 1- is ...
0
votes
1answer
17 views
ng-bind-html returning separate elements
How can I return these vars from my controller to use in my view as separate elements?
My controller.
.controller('AccountCtrl', function($scope, $sce) {
$scope.sharelinks =function () {
var ...
0
votes
0answers
28 views
AngularJS, a number gets added to a string after a click event
Here is the beginning of my function:
function get_argumentation(type,id,boxClass, argumentcontent){
type = type || 'argumentation';
id = id || 0;
boxClass = boxClass || 2;...
1
vote
1answer
23 views
How to show amount of items after text filtering?
I am using Angular and Ionic to show some lists and filter those lists. What I want to achieve now, is to show the right amount of numbers of lists that are shown after text filtering.
To show you ...
0
votes
0answers
14 views
Error handling in case no data from REST api for ng-csv
I am using ng-csv to download json data in csv format. I am getting the JSON data from REST api.
If the REST api is returning the blank json or any other error code, blank csv file is getting ...
0
votes
1answer
42 views
Angularjs not working in Chrome but working in Firefox
I have been developing on firefox & the code works fine but when I tried to test on Chrome it just displays the {{err_msg}} which means angular is not working.
I am using Django 1.10 server with ...
0
votes
0answers
13 views
SoundCloud search api get original tracks
I am trying to get original soundcloud tracks but it returns me covers and mixes. Even track_type: "original" didn't solve this problem. Is there any way to get original tracks from famous artists?
-1
votes
1answer
13 views
Ionic service.js don't work
I have a problem with an ionic app. I create a service.js file where I want to create same factory.
In my app.js I have this line:
angular.module('app', ['ionic', 'app.controllers', 'app.routes', '...
0
votes
0answers
19 views
Load different templates based on user login status
I am working on an application where there is a generic welcome page and then there are views which are visible only to the logged in / authorized users.
Now, to achieve that I am loading my angular ...
2
votes
0answers
21 views
Showing custom view based on user role in angularjs
I want to show different views based on the user of my application for example if the user is admin he can see all the controls or when it is acting as user he can only see a subset of controls and UI ...
1
vote
0answers
20 views
Uncaught Error: [$injector:modulerr] Failed to instantiate module app due(ui-grid problems)
I'm using NG6-starter(it's angular 1.5 with components and webpack builder). It's broke only when i'm trying use ui-grid, because previously i add many angular modules, but only with ui-grid i have ...
-1
votes
0answers
14 views
Angular good design pattern for implementing utility functions
I searched for a lot of design patterns, but found nothing on how to implement functions that are going to be used both in some controllers and in html markup. I really want to escape copy-pasting ...
0
votes
2answers
22 views
AngularJS digest cycle not firing during $http.post.then()
Using AngularJS 1.6.1 (ES6/Babel)... controller invokes a service method which uses $http.post() so I thought it would automatically run the digest. Had to add $timeout to force it (prefer to avoid $...
0
votes
4answers
34 views
Expected Array but received …(JSON)… AngularJS Error
I'm learning Angular1 from Adam Freeman's ,,Pro AngularJS" book. I've got a problem with building a DeployD app he's describing in chapters 6-8 - it seems like my code doesn't want to read JSON
That'...
3
votes
2answers
35 views
Creating and updating the global list with with angularjs in ionic
I try to declare a global list in my ionic project with rootScope variable. My aim is to update this list with specific messages. According to my scenario, I have different views with their forms. I ...
0
votes
5answers
37 views
How to clear input field onclick?
I have done a lot to fix this, but it's not working. I am using Ionic's searchbar.
My input field gets the class ng-empty when nothing is filled in (so this is the default state). The input field gets ...
0
votes
1answer
40 views
Replace $scope with this by turning on ControllerAs
I thought to replace $scope with this keyword in my sample Angular code base and in turn to switch to using ControllerAs syntax.
But in turn this does not seem to work now.
I have a list of ...
0
votes
0answers
14 views
Controller variable set to false on hover over a link in parent route
I have a link in dashboard.group:
<a ui-sref="app.dashboard.group.create" href=""><md-tooltip md-direction="left">
Create Group
</md-tooltip><...
0
votes
3answers
32 views
factory is unable to convey data to another controller
I am building a spa with angular and slim framework. As per the bellow mentioned code, what i am trying to do is, login page controller will pass data to landing page controller upon successful ...
0
votes
4answers
26 views
AngularJs error Cannot read property 'then' of undefined
This is module
(function(){
/**
* app Module
*
* Description
*/
angular.module('app',[]);
})();
I have this service
(function(){
'use strict';
angular
.module('...
1
vote
1answer
17 views
Get json data into ioni view
I have this controller...
"use strict";
var app = angular.module('ng-laravel');
app.controller('StartCtrl',function($scope, $http,$rootScope,$ionicLoading,$cordovaDevice,$cordovaVibration,ionicToast,...
0
votes
0answers
21 views
Run a Function when Ionic View Reach End of Page (or near bottom)
I tried to run a Function when Ionic View Reach End of Page (or near bottom) using
this article but I got zero on my console log
and here is my code
$timeout(function () {
var currentTop = $...
0
votes
2answers
22 views
Attach a parameter from Angular after a path in window.location
I have an html file that show a dynamic table using an Angular script:
<h2 class="sub-header" style="color:#4e67c3;">Elenco macchinette</h2>
<div class="table-responsive"...
1
vote
1answer
25 views
URL param passed as body param with Angular Resource
I am using Angular (1) with $resource. One of my API request is failing because a URL param is passed as a request body param instead. Why is this happening?
/** @ngInject */
module.exports = ...
-3
votes
0answers
22 views
Angular JS Image Upload and Crop Functionality [on hold]
I started learning Angular JS and want to make an image upload and Cropping UI. I searched for the same on stackoverflow but the answers provide links to codes on github and codepen . I just want to ...