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)

0
votes
0answers
4 views

Angular lazy load js file from partial view

I have a js file in my partial view. How would I load it dynamically when that partial is loaded? My directory structure is app ---css ------style.css ----js -------app.js ...
0
votes
3answers
19 views

How to convert key-value pairs to list of array using `AngularJS`?

This is our data: $scope.arr = { "1": "A", "2": "B", "3": "C", "4": "D", "5": "E", "6": "F", "7": "Others", "fromDate": { "$date": "2015-02-13T20:59:28....
0
votes
3answers
11 views

angularjs $rootscope event does not fire on parent directive

I have two directive on my design. var app = angular.module("app",[]); app.directive("dirContainer", function($rootScope){ return { template: "<div><clock></clock></...
0
votes
0answers
6 views

Add UI-Grid Gridmenu button tooltip

How add UI-Grid GridMenu icon tooltip (uib-tooltip or custom style tooltip). enter image description here
0
votes
1answer
19 views

AngularJS promise through tow loops

Have some trouble with Angular promise between two loops... First loop walk through an array of value, and for each value, make a PouchDB Query to retrieve some datas. Finally, would like to return to ...
0
votes
1answer
19 views

AngularJS $http.delete and $http.put don't work in real life

I have made a simple CRUD application with AngularJS which retrieves the data with a simple RESTful API (https://github.com/mevdschee/php-crud-api). Testing on localhost gives no error at all. All ...
0
votes
1answer
9 views

Usage of Forloop in Function callBack that is executed recursively

This is the code snippet I have. Please Help me to handle the for loop inside the callback function. Right now, the for loop get executed before the results in callback appears. $scope....
0
votes
2answers
14 views

How to get data from Database/Model with JavaScript

I'm new to ASP .NET, MVC and AngularJS so I'm trying to figure this all out still. I have a Model called Words.cs which contains: namespace liveSearch.Models { public class Words { ...
0
votes
0answers
12 views

Consume Remote API in Laravel with Nodejs and Angular

I need some help in my project: I have one API created in Laravel 5 with MongoDB this found fine, I make test with postman and I can login, logout, refresh token and CRUD of all my collections, for ...
0
votes
2answers
8 views

ocLazyLoad controller dependency data resolve issue

I have a situation where i am loading a service and controller with ocLazyLoad in angular js, which is working as expected. But, i also want to pass some data to controller by using the service which ...
0
votes
1answer
8 views

Angular ngRoute suddenly converts URL into encoded characters #!/#%2F

Everything in my app was working fine until I tried to add ngAnimate, ngMaterial and ng-image-gallery. I don't know whether adding these modules is the source of the problem, but I didn't change ...
0
votes
0answers
7 views

Directive/Component name 'ng ' is invalid. The name should not contain leading or trailing whitespaces

Trying to run my app in production And get a strange error CODE/ERROR MESSAGE angular.js:68Uncaught Error: [$injector:modulerr] Failed to instantiate module ng due to: Error: [$compile:baddir] ...
0
votes
0answers
8 views

ionic set a value to an input from result

I am trying to set a value "postid" that i've got from json "{{postDetail.post.id}}" to an hidden input and then send it with a form <form ng-submit="submit()"> <...
0
votes
2answers
30 views

How to use $scope value from one HTTP request in another HTTP request

I am using AngularJS to send form data to the server. app.controller("OrganizerReg", ["$scope","$http", function($scope,$http) { $scope.userOrganizer = {}; $scope.processform = function() { $...
0
votes
1answer
17 views

MEAN Stack Amazon Passport Auth

I'm attempting to use Amazon Passport in my MEAN application for authentication, but I'm running into a cross origin error. My application is set up like this: View: <a id="LoginWithAmazon" ng-...
0
votes
2answers
12 views

Angular Translate for data coming from REST

I must translate data from a REST service. The data is in the database, the client want this. In frontend I have this: Controller: CreateListService.getCharacteristic().then(function(response){ ...
0
votes
0answers
15 views

$compile: ctreq error not been thrown after upgrade to angular 1.61

I had just started the migration from angular 1.48 -> 1.61 I had left with a unit test which refuses to pass. We want to verify that the directive we wrote, will not change in the future such that it ...
0
votes
0answers
13 views

data undefined from codebehind to angularjs

retrieving undefined data from webmethod to angularjs. I am new to angularjs. referring some previous posts, I added the following code. web.config <httpModules> <add name="...
0
votes
4answers
31 views

How to add space above a form? Padding isn't working

I am a bit new to angular and bootstrap so bear with me. I think form is only a part of bootstrap to make it easier. I can't seem to align it well with the rest of my html. The form is at the bottom ...
0
votes
1answer
7 views

How use a theme or template in ionic framework

I'm trying to use ionic material theme in a app trying to build using ionic framework. I installed ionic-material and robotidraft using bower. added the scripts also.. but in next step they asked to ...
0
votes
0answers
15 views

how to use ETags to solve Optimistic Concurrency Control in Angularjs

I run AngularjS 1.5 with $resource to call backend restful service. It is found that when two user edit same record row with different field at the same time. The later edit will override the previous ...
0
votes
0answers
14 views

AngularJS, UI-Router, Components, TypeScript

i've tried to create a simple angular1 component with the ui-router but it seems I cannot get it to render and I have 0 error in console... Here is the code: Config.ts module app { export class ...
-2
votes
0answers
36 views

Where can I host my web application for free? [on hold]

I have a web application that uses PHP and AngularJs. So I tried google appengine but somehow it just isn't cooperating with me. I've deployed projects (that dont use Angular) onto Heroku with success....
0
votes
1answer
20 views

How to get data from Database/Model with JavaScript/AngularJS

I'm new to ASP .NET, MVC and AngularJS so I'm trying to figure this all out still. I have a Model called Words.cs which contains: namespace liveSearch.Models { public class Words { ...
0
votes
0answers
15 views

How to resolve External JavaScript dependency of Nested Angular view?

In index.html <html lang="en" ng-app="hrApp"> <head> <link rel="stylesheet"> ... </head> <body> <!-- templating --> <!-- this is where content will be injected ...
0
votes
0answers
18 views

Angular load controller dynamically

I'm new in angularjs, I'm working in one app using laravel, angularjs and requirejs. my question is: how I can load the controller dynamically when a user request a page (view). example: if a user ...
0
votes
0answers
8 views

Web Config Multiple Rewrite Rule

I am working on angularjs project. this project contains two index pages. I need to redirect to index1.html for the url domain/Admin/* or redirect to index2.html. i have the following rewrite rule in ...
0
votes
2answers
31 views

why is my program only displaying pieces of a $http request I'm making?

I'm working on a pokedex project , I currently am pulling data from pokeAPI to get information about different pokemon based on the name they type in a search bar. At which point it's supposed to fill ...
0
votes
2answers
22 views

Making a $http request returns undefined in a couple different ways

I'm just starting out with Node.js and I am trying to make a pokedex with pokeAPI , I'm having an issue using $q and $http requests. When I attempt to make the api call it brings back "ReferenceError: ...
-1
votes
4answers
35 views

How to compare if an HTML element exists in the node array?

selectedContentWrap - is an array with nodes. htmlVarTag - is an HTML element. How do I check if the HTML element exists in the nodes? I've written this func and it does not work as the htmlVarTag ...
0
votes
1answer
17 views

Trigger oncontextmenu event in textarea element Angularjs

I'm using the packery library for Angularjs from here. It works fine but I found out that I cannot edit the textarea content when I click on it. After spending some time I was able to make it editable ...
1
vote
0answers
22 views

Unable to dynamically transpile ES module System.config({ transpile: 'transpile-module'})

It's my tsconfig.js { "compilerOptions": { "experimentalDecorators": true, "emitDecoratorMetadata": true, "moduleResolution": "node", "target": "es5", "module": "system", "...
0
votes
2answers
42 views

Confused by Node.js installation to use Angular.js

I'm going through the tutorial provided by Angular(https://docs.angularjs.org/tutorial) but I'm confused by the Node.js installation. I already have node installed globally on my mac. In the tutorial ...
2
votes
2answers
32 views

Angular - Simple custom service not returning data back to controller

Been scratching my head for weeks on this particular part of my code. What I have is a simple custom service that would fetch my data via ajax, I then perform a post process and lastly I want to ...
0
votes
1answer
20 views

ng-show/ ng-hide not responding, no console error

So i am making a Todo App in angular js 1.x (1.6) but my ng-show and ng-hide do not work. the goal is to make a textbox appear in the todo section when you click the edit button to edit current todos, ...
-3
votes
0answers
18 views

Want to delete row from database using php and angular [duplicate]

Here is my angular code. I want to use id to delete row from table $scope.delete = function(deletingId, index) { var params = $.param({ "id": deletingId }); $http({ headers: { '...
0
votes
4answers
31 views

How to Pass a JavaScript function that contains parameters as parameter

This seems not working: <a href="#ThisSweetConversationYouOpened" ng-click="OpenChat(returnNotmyID(19,20))"> Please help Thank you Edit: I still didn't get a working answer yet. So found an ...
0
votes
1answer
23 views

Can't set a default value on select>option when using ngChange=“myFunction()” in my angular app

I'm building an angular app ; and I have to set a default value coming from $scope.ecole.niveauid of my controller. To do so, I just wrote this code : <select class="form-control" name="niveau">...
0
votes
2answers
20 views

Unable to get parent controller data inside the component's template html in angularJs

I am unable to display the name of all countries inside my template html. I have function in parent controller that stores the list of all the added countries. Using component bindings, how can I pass ...
-1
votes
2answers
9 views

Dynamic Query grouping specific fields

I'm trying to display a table in front-end. The applications is written in AngularJS and PHP with MySQL. My table is something like: +-----------+--------+--------+ | id_person | id_car | value | +-...
0
votes
1answer
11 views

Error: Uncaught Error: [$injector:modulerr]

var app = angular.module('app', ['firebase', 'ngCookies']); app.factory("Auth", ["$firebaseAuth", function($firebaseAuth) { return $firebaseAuth(); } ]); app.controller("ctrlHead", ["$scope",...
0
votes
0answers
27 views

Decode the string and store the values in mysql database using php

$scope.updatedTable = function() { var updatedTable = JSON.stringify($scope.TableDetails); $http.post('controllers/updateTable.php',{'data':updatedTable}) .success(function(data) {...
0
votes
0answers
9 views

AngularJS / ngSticky / Angular Material: Avoid sticky div from disappearing when clicking on Angular Material's Datepicker

I want to avoid the sticky div from disappearing, and also the annoying jump to the beginning of the page when clicking on the Angular Material's Datepicker. index.html: <h1>ngSticky</h1&...
1
vote
0answers
14 views

webpack-dev-server electron angular 1.6.1 hot reload blank screen

Im currently learning Electron, I created a simple app in Angular with webpack to livereload. However on hot reload the app loads a blank view, *see screenshot below, and I have to restart electron to ...
1
vote
1answer
21 views

$http data vs params when making POST request

Preface: I am using AngularJS 1.5.9. When writing my service, this code works when posting to the server: var request = { url: '/connect/token', method: 'POST', data: $...
-2
votes
1answer
20 views

SEO - How to send robots/crawlers to another page? [on hold]

My website is doing poorly in SEO because I wrote it in Angular and phantomjs is giving me the biggest headache. Since all my data comes from a PHP service, can I just point robots and crawlers to an ...
0
votes
0answers
13 views

resolving views in angularjs spring boot application with spring security

I am trying to build an application with AngularJS 1.x, Spring Boot REST with Spring Security. Though I have intermediate knowledge on Spring REST itself, I am quite new to AngularJS and Spring ...
0
votes
0answers
15 views

Angular2/CSS - OneClick/DoubleClick Radio conflict

First we have got this html/css fiddle : click here I'm trying to reproduce it, adding a ng-model bound. So basically, I just copy/paste it and add a ng-model in each input. HTML : ...
0
votes
1answer
20 views

AngularJS1 - component bindings acting strange

I'm trying to learn how to use the component binding feature. So I wrote a component: 'use strict'; var module = angular.module("Test", []); module.controller("Controller2", Controller2); module....
-1
votes
0answers
12 views

Using php as server side language in Ionic Framework [on hold]

I'm planning to build a hybrid app with ionic framework... since I know only php as a server side language, is it possible to use php ? I mean sending data back and forth in json format? can I use ...