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 ...

learn more… | top users | synonyms (2)

-1
votes
0answers
6 views

Filter and search unordered list Angular2

I'm looking for a way to filter an unordered list using an input field with angular. I have a component which builds an unordered list on page load with data fetched from a JSON file, using the *...
-1
votes
0answers
3 views

Error using resolve with UI Router => angular.js:13920 Error: [$injector:unpr] Unknown provider: simpleObjProvider<- simpleObj<- EnrichingController

I am trying to use ui router with resolve and it is showing the error message : This is app.js This is app.js var app = angular .module('CoreServiceApp', ['pasvaz.bindonce','ui.router','...
2
votes
1answer
12 views

With Angular, how do I bind `input` text in an `ng-repeat` `div` to another `div` in another `ng-repeat`?

I want to make an Angular-driven page where input tags are bound to h3 tags in other DIVs. Here's what my HTML looks like (with Plunker): <!DOCTYPE html> <html> <head> <...
0
votes
0answers
12 views

Twitter sentiment package issues npm

I'm trying to build a twitter sentiment analysis tool with Angular, Node and Express. Right now I am able to grab user tweets, remove *some special characters and then when I call the sentiment ...
0
votes
1answer
10 views

Angular JS select all/De select all checkboxes how to retrieve selected information

I am displaying output response(JSON) from REST API using Angular JS. I am planning to provide user with an option of checkbox for every result listed and also a selectall/deselectall checkbox .I am ...
0
votes
1answer
11 views

Add DOM element when transcluding except for the last one child

I would like to add a <hr> element between each clone of my transclude function except for the last one clone. The parent directive have a custom HTML template. In this template, I call a ...
0
votes
1answer
5 views

Error when posting json using $http

I have the following however I keep getting an error message about the period between the JSON and stringify. var JsonObject = {}; JsonObject['key'] = '987'; JsonObject['val'] = '1234'; JsonObject['...
0
votes
0answers
7 views

Detect that URL has been changed by ui-router, not by user?

I have a SPA angularjs application and have tabs within the application. Every click on the tab has different URL. But every time the URL changes, the page has to do something. I have to separate the ...
0
votes
0answers
7 views

Route issue in Profile Page

Route var myApp = angular.module("myApp", ["ngRoute", "ngCookies"]); myApp.config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) { $routeProvider.when('/'...
0
votes
0answers
4 views

ionic tutorial list not showing Uncaught ReferenceError: angular is not defined

I've been working through this tutorial https://ionicframework.com/docs/guide/building.html and I'm stuck without the list showing up when I test it. It shows the header with "Todo" (as seen in the ...
-1
votes
0answers
31 views

Why do I need PHP when using AngularJS and MySQL? [on hold]

Fair Warning: Noob question on the way... The question itself shows I know very little about web programming. I have created a couple of projects with Ruby & Sinatra in the past and recently I ...
0
votes
1answer
16 views

Ionic & Angular: Toggle CSS throughout the entire app?

New to Angular so forgive me. How would you accomplish something in the vein of a 'Night Mode' in which you can toggle between two CSS states that's then represented in all of the views? Take for ...
0
votes
1answer
9 views

How to use interpolation inside ui-sref

I have states like this: .state('portfolio.work1', { url: '/work1', templateUrl: 'app/portfolio/work1.html' }) .state('portfolio.work2', { ...
0
votes
0answers
10 views

Google Analytics in Angular and Real Time traffic

I've seen a lot of discussion threads recommending to send the page parameter to the analytics collector in SPA websites, e.g. in Angular like this: $window.ga('set', 'page', $location.url()); $...
0
votes
0answers
12 views

angular: drop down with image filenames - preview images

I have a drop down to pick image files from disk. I know there are very sophisticated ways of making image pickers. I'm keeping this simple. I simply want to scroll down the list of options and have ...
0
votes
0answers
13 views

Import angularjs minified version

I'm using webpack, and have the following code import angular from 'angular'; which works good, but the problem is that included file is too big (angularjs - 1.15mb). It will be better of course to ...
-1
votes
1answer
20 views

Calling the JSON correctly

I have a JSON array fetched from the service to the controller. I'm able to display the JSON array in the console. But when a specific item from the JSON, is called it display's undefined. So how do I ...
1
vote
1answer
11 views

ng-include added addition div element

Navigation.html contents <div class="collapse navbar-collapse" id="app-navbar-collapse"> <!-- Right Side Of Navbar --> <ul class="nav navbar-nav navbar-right"> <...
0
votes
0answers
10 views

how to fix “Failed to install 'cordova-plugin-console':Error ”

I am trying to make apk file. I have android studio with sdk installed and jdk. But when i try to add android package to my ionic folder. I get this error FAILURE: Build failed with an exception. * ...
-4
votes
0answers
15 views

Using service inside ES7 decorator in Angular 1.5.x

I have a problem using ES7 features with Angular. I would like to use service inside my ES7 decorator. How can I do that?
1
vote
1answer
16 views

Parsing json in Angular returns undefined

I am new to Angular and I am going through this tutorial and I have problem with parsing the given json which looks like this: { "records": [ { "Name" : "Alfreds Futterkiste", "...
0
votes
0answers
12 views

Angular - force redirect to a certain page

In my app there's a certain wizard with several steps the user must finish before using the app. Each step certain data is begin added to an array. How can I use this in order to determine how many ...
0
votes
0answers
6 views

Angularjs POST request status pending

I need your help, dunno no how to solve it, I'm using MEAN stack for simple app, that has a field with input tag inside and when i fill it the data is sending to server and save in db, the problem is ...
0
votes
1answer
8 views

angular updated http promise methods not working where legacy ones do

I'm trying to learn the mean stack from the book 'Getting MEAN' which is a little old now, so I'm using more up to date code where applicable. I have just run across an issue that I can't quite solve ...
0
votes
0answers
17 views

Pass POST data for backend to get from req.query and req.body

route.post('/favourite/save', auth.isAuthenticated, favourite.save); In auth.isAuthenticated there's req.query.tokenId and in favourite.save there's req.body.itemId, how can I in the same time send ...
0
votes
1answer
17 views

change value of variable in factory with ng-click

New value is not updated (as can be seen in output of view 2). HTML View 1 form (note: ng-click with two functions called, good practice?): <form name="campaignForm1" action="#/setup-step2" ng-...
0
votes
1answer
20 views

Show Welcome Message in Angularjs

My Laravel Code is here <a class="navbar-brand" href="{{ url('/') }}"> @if (Auth::guest()) {{ config('app.name', 'Laravel') }} @else Welcome {!! \Auth::user()->...
0
votes
0answers
12 views

How create a angular module to Unity 3D?

I wish made an Angular module using Unity WebGL. Indeed nothing has already done on this topic and no module existed today. However, I am little lost and I need help. It would be good if that module ...
0
votes
0answers
6 views

Angularjs mysql blob return null

Why rootScope (angularjs) returns null from mysql db BOLB format (it is audio) https://gist.github.com/Serge-Paradis/16590423fa02a042240dc5b28fc088c4 //Define an angular module for our app var ...
0
votes
0answers
7 views

Mock PERSISTENT Database with Front End?

Let's say I want to mock to mock a persistent 'database' from the front end - I want to mock up a site with persistent data (for one user, i.e. me), but I don't want to worry about C#/Java/Node/...
0
votes
0answers
23 views

How can I add dynamic data to a multi-page, server-side-rendered web application in a modern way?

I have a non-JavaScript, multiple-page web application and I want to add a data table generated dynamically from an XML file, refreshed every 5 seconds without reloading the entire page. I know how ...
1
vote
2answers
26 views

Javascript - Nest select dropdown inside text

I am trying to have a container such as: <div class="container"> <div class="row"> <h2 style="text-align:center;">Option 1: {{ dropDown1}} Option 2: {{ dropDown2 }}</...
0
votes
0answers
16 views

Dividing an angular 1 app into modules for performance

My goal is to take my existing app and break it down into 3 groupings. The public facing app, the private portion behind authentication (the admin), and reusable components (directives and factories)....
1
vote
2answers
26 views

select angularjs not updating titles after http petition

I've searched a lot before to ask this question but I don't find anything. The problem is that I receive a JSON after a GET petition of server, and receive it correctly (I'm check this) but the select ...
0
votes
0answers
8 views

Horizontal Roulette/Slot Machine

I need to implement a horizontal wheel of fortune in Angular 1.x and Ionic 1.x. The idea is, we have a list of cards stacked on top of each other horizontally. The user clicks the spin button and we ...
0
votes
0answers
21 views

How to display all images on my localhost server - localhost / NameOfImage.jpg which actually a folder containing jpg files

I want to display all images on my localhost server - localhost:3500/NameOfImage.jpg which actually a folder containing JPEG files. I want to display all the images on /upload folder of my server ...
1
vote
2answers
26 views

string concatenation using javascript's shorthand for pural or singular term

$scope.msg = 'Ok, you ate ' + num + ' hotdog' + (num.length > 1) ? 's' : '' + ', got it!'; Why above $scope.msg return only 's' ? I expect hotdogs for pural and hotdog for singular with ...
0
votes
0answers
24 views

Ng-Change Not firing second time

I have the following select: <div class="form-group"> <label class="col-md-4 control-label" for="activity">Activity</label> <div class="col-md-4"> ...
1
vote
2answers
15 views

HTML Class Name from Angular Array Element

I have an Angular array that contains JSON data. One of the elements is the name of an ionic icon. I am using ng-repeat to loop through the elements and I want to dynamically update the ionic icon ...
0
votes
0answers
16 views

Redirect from Rails controller after Angular POST

I have a normal Rails app (no SPA) and on one page only I'm using Angular. At the end I'm sending a POST to the server with the form data (and it is working) and as the final step of the POST I'd like ...
0
votes
1answer
12 views

AngularJS : search engine optimization

Summary : We developed a Single Page Application using AngularJS. We dynamically change the page title and meta tags based on AngularJS partial view. Problem statement : Everything is working fine ...
0
votes
0answers
9 views

ePub.js - can't open certain books

I am trying to run ePub.js on my local system using Node.js and NPM and getting issues while trying to open the ePub files. In a very basic setup, I am using their existing example of Moby-dick book ...
0
votes
1answer
15 views

angularjs map directive for openlayers does not get scope value

I want to create an angular map directive for openlayers map application. For example this is an example of map. I created an angularjs directive. (function () { "use strict"; angular....
1
vote
1answer
21 views

Angular Typeahead issue

chick here to see error When i am using Angular 1.6.0 typeahead is showing me this error. When i am using angular 1.5.8 every thing is working fine . Please guide me how to fix this. $scope....
0
votes
0answers
17 views

angular material md-list not refreshing after update

I implemented an md-list like so: <md-list> <md-list-item class="md-3-line" ng-repeat="file in index.files | orderBy:'type'" ondrop="drop(event)" ondragover="allowDrop(event)" ng-click="$...
2
votes
4answers
57 views

Directive with ng-model Attribute Not Resolving Using $http

Trying to make a rating directive but I'm stuck at getting rating2 to work. The first rating worked because the rating1 is hardcoded within the controller. But normally I have to get the saved rating ...
0
votes
0answers
6 views

Ag-Grid Paging columnDefs template Data Binding not working

i am working on angular application and the error occurred on ag-grid column definition template data not binding on paging my code is var columnDefs = [ { headerName: "Narration", field: "...
1
vote
1answer
17 views

Getting status 500 when using angularjs $http to get data from server

I am working on an asp.net mvc application and I am using Entity Framework and AngularJS in it. I am using AngularJS's $http service to call an action method and retrieve data from the server. The ...
0
votes
0answers
13 views

Retrieving Data from DynamoDB using AWSSDK.net (core version 3.3.5 and AWSSDK.DynamoDBv2 version 3.3.1)

I am trying to retrieve the data from Dynamo DB based on a search criteria using Scan request. I am following the steps mentioned in http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/...
-1
votes
1answer
14 views

get img path when on different location

In the API the image url value is img/something.jpg. So when I consume on the homepage it's ok. I can use $scope.img = response.data.imgUrl. But when I'm creating another page I do the same the image ...