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
6 views

How do I get a download box to appear when a user clicks the download button in a custom section in Umbraco?

Here is what I have so far for the controller: [Umbraco.Web.Mvc.PluginController("xyz")] public class ContactFormDataApiController : UmbracoAuthorizedJsonController { //Function called ...
0
votes
1answer
11 views

Accessing $scope date inside a http.get callback

I need to store the data returned by $http.get in a $scope variable to be used by my ui-grid control. I´m sure I´m missing something very simple, but I can´t find out what. Here is my code: app....
0
votes
0answers
8 views

Error is not a function when call from component to model method

im getting this error when i try to call from my component template to model method. error in ./NewsListComponent class NewsListComponent - inline template:3:12 caused by: self.context.$implicit....
0
votes
0answers
6 views

Angular JS $http get call works in Chrome and returns a null in FireFox

I have an MVC app using AngularJS. We do not use WebAPI. So, the angularJS would just be calling the MVC Controllers. These calls work fine in IE & Chrome. However, in Firefox and Safari I tried ...
0
votes
0answers
7 views

AngularJS model filter with date range filter

I have in the view: <tr dir-paginate="post in posts |orderBy:propertyName:reverse | filter: searchPost | itemsPerPage: pageSize"> <td> {{post.title}} </td> <td> ...
0
votes
0answers
6 views

Create dinamic directive in angularjs

I want that when I click an element within a directive call other directive with the detail of this element. Actually when i click in an element the directive is called, but not display the ...
0
votes
0answers
6 views

angular uib-popover-template input two-way binding

I am working on uib-popover recently, I found a problem that I am confused with. I want to popover a template, in this template I have an input, at first the input have initial value. I want to ...
0
votes
0answers
11 views

Dynamic buttons work on first try but not second

I have buttons that will add new search section and remove section, however if you click the first section, then you remove the first section and then add first section again the first section doesnt ...
0
votes
3answers
18 views

ng-click not firing when button is clicked

Can someone tell me when i run the below Angular code and when i click on the button it does not load the page. Even i do a simple alert it doesnt seem to work. Any idea what i must be doing wrong ...
0
votes
0answers
11 views

Angular JS 1 Routing Error causes infinite loop

The following code causes an infinite print loop when navigating to: /test/new Ok. I've tried to create a simple example of it. I made it work in the following way. My directory structure is like ...
0
votes
0answers
13 views

custom filter doesn't work, angular ui grid

I'm trying to add custom header template to my grid. The most of data is dynamic, that's why I didn't define columns and left it that ui-grid built it programatically. I exactly know that one of this ...
0
votes
0answers
10 views

Angular 1+2 Hybrid app - Switching between ng1 and ng2 components using links causes blank page

I have a big existing angularjs+ngroute app to a ng1+ng2 hybrid app. The main ng2 app module template looks like this <!-- index.html --> <a href="/stocks">Stocks</a> <!-- ng2 ...
0
votes
1answer
10 views

$httpBackend.flush() causing Route Change

I have recently updated my Angular application from 1.5.8 to 1.6.1. In tests, $httpBackend.flush() started changing routes and broadcasts the '$routeChangeStart' message which started calling the ...
0
votes
0answers
17 views

How to get root element for scope in angular?

I usually need the element's scope which is something like $(element).scope() or angular.element(..).scope() But now I have the opposite problem - I have a scope, and I need to find which element ...
0
votes
0answers
10 views

Meteor Accounts.loginWithPassword “400 Match Failed” Error

I'm playing around with the Angular Meteor tutorial that uses Ionic to create a WhatsApp Clone. I changed the phone verification to a normal user setup using username/password. Accounts are created ...
0
votes
0answers
7 views

How can I include inline JS in my karma.conf.js?

I have an Angular app that defines a constant within the ASP.NET Razor view like this: <script>angular.module("app").constant("versionNumber", "@ViewBag.VersionNumber");</script> How can ...
1
vote
1answer
15 views

programmatically compile template and append to element

In an Angular 1.4.7 app I want to programmatically compile a string of HTML, passing it a scope. This compilation is performed inside a directive, and I want to append the result of the compilation to ...
0
votes
2answers
21 views

How to retrieve json data to laravel controller

There are questions like this on StackOverflow, that I know. Trust me, I have tried all the solutions to no avail. I have been trying to post this json data from angularjs to a laravel controller ...
0
votes
1answer
12 views

Angular datatables - add row in a dynamic column table

I have a datatable table with a variable columns number and I need to add rows to it. That's how I set the columns: var columns = getColumnsName(); columns.forEach(function(column, index){ ...
0
votes
2answers
26 views

$http not defined when posting to server

Here's my json: [ { "name": "AAAAAA", "date": "28-03-2016", }, { "name": "BBBBBB", "date": "20-12-2016", }, { "name": "CCCCCC", "...
-2
votes
0answers
11 views

Onboarding AngularJS and Angular 2 web applications on javascript dashboard

I am building a website to run multiple web applications like web forms, charts, image processing applications. I want the admin page to have a feature to have an input field where the developer can ...
1
vote
1answer
40 views

Invalid argument in ng-repeat

I have a simple template: <div ng-view class="reveal-animation" > <br/> <div class="container"> <div class="row"> <div class="panel panel-...
1
vote
2answers
38 views

Array splices the wrong item in angular during ng repeat

I'm trying splice items from an array but it removes the wrong item each time. I believe it is becuase I filter the array array using orderBy, so the array on the DOM is different from the array in ...
0
votes
0answers
10 views

How to download tagged versions of Angular beta packages from GitHub?

I'm trying to install Angular 4 (beta 2) using NPM. Previously, I managed to install Bootstrap 4 (alpha 6) and I was trying to apply the same approach with different names for the repository and tag. ...
0
votes
1answer
21 views

Typescript Class as a Member Variable in Angular?

I'm learning Angular and TypeScript and I have a question or two. With TypeScript can you have one class/object be the variable type for an other object as shown below? If so how do you reference the ...
1
vote
3answers
26 views

AngularJS Remove Substring from String in an expression {{}}

I have this markup in my angularJS mark up <div class="photo" style="background-image: url('{{item.mageURL}}')"></div> The {{item.mageURL}} expression producing a string like: http://...
0
votes
0answers
19 views

MEAN stack update view with Node/Express response

I have a MEAN stack dashboard app (server1) that communicates with a nodejs/express server (server2) which makes queries to a mongoDB. For example the user is supposed to select a month via the ...
0
votes
2answers
27 views

How to resize table width based on screen size

I'm working on this page which contains a table inside modal-body. The screen i work on is 22 inch and the table looks perfect on that. But when I see it on my laptop Macbook 13 inch, the table ...
0
votes
0answers
22 views

How to remove specific ng-repeat section on button click

I have a bootstrap form that has sections of search fields, I also have a button that you can click to add more sections of search fields, each section has a remove button that should remove that ...
0
votes
0answers
15 views

How can i write data to firebase with angularjs?

I wanna write data to my firebase database and i really done know how. Here is a link on jsfiddle And here is the script: var app = angular.module('angularjs-starter', []); app....
0
votes
2answers
49 views

AngularJS orderBy percentages

I have a table with a column such that I am trying to sort these percentages, but they are not being sorted as expected even though I have tried parseFloat and a few other methods of making sure ...
2
votes
1answer
25 views

select nth element from element array jquery

I'm working on my angular e2e test project. I've the following html generated as part of my ng-repeat with out any id, I would like to choose the second element that is with heading Topic - xyz and ...
0
votes
0answers
8 views

angular google map with Polyline between array or locations

I have an angular directive for a google map. I would like to show polylines for an array of locations, but the line is not showing up... any idea or link to a simple example for angular maps with ...
0
votes
1answer
13 views

Which UI Design Framework to use for designing and ERP Web Application

I am actually trying to design an ERP web application, currently working with Angular Material, but seems each input element takes a lot of space(vertical height) on the page, so if I have have 15 ...
-1
votes
0answers
18 views

Angular concatenated file gives an "Unexpected token = error

I am trying to run a nodejs project. After I build the project I run npm start from the distribution directory But the concated file throws an "Unexpected token = " Error I am not copying the ...
0
votes
0answers
32 views

Modal window does not popup on ng-click

I'm trying to add a modal popup window to my Angular app. Although it lists down the names, when I click on the names a modal doesn't appear. Below is my code HTML: <div ng-app="app"> <...
0
votes
2answers
24 views

Access an Angular scope variable outside of Angular

I need help please, and thank you in advance: I have two Javascript files A.js and B.js. A is written in Angular and B is not. Now B needs to change a value of a scope variable inside A's controller. ...
0
votes
0answers
22 views

How to show large image using Bootstrap or Angularjs?

I am using bootstrap and angularjs, I want to show large image on. I clicked image but its not working. How do this? Any built-in library of bootstrap when I show large image. <html> <head&...
0
votes
0answers
16 views

why isn't my component rendering? (angular 1.5)

Why isn't my component rendering? It's just stuck in the DOM as: <ui-view> <disclaimer></disclaimer> </ui-view> It should look like this: <ui-view> <...
0
votes
2answers
15 views

Angular Js:How to pull factory data to the controller

Hi I am trying to pull my angular js factory data to my controller, please have a look if there is any issue. factory.js .factory('History', ['$http', '$q', function ($http, $q) { function ...
0
votes
0answers
9 views

Angular: Unable to bind content of contentEditable div to an object inside of a directive

In my app I present some data inside a template represented by a directive. The data is distributed across divs with a property of contentEditable="true" (this is the requirement), so it's possible to ...
0
votes
0answers
17 views

How to check whether element is already clicked or not in protractor

I need to check whether element is already clicked/selected or not in protractor. My scenario is given below.: I need to check whether the date which i am going to select is already selected in ...
0
votes
1answer
16 views

How to resolve Angular Service directly from an Angular Component

I am currently using Angular 1.5. I am using ui-router as my primary navigation mechanism. I am leveraging Angular components a lot. I understand that I can use .resolve on my states to ...
1
vote
0answers
18 views

Angularjs routeProvider - render ng-view template context w/o base html template

I want to render my 404.html template separately from index.html outside ng-view of index.html as example: I have: app.config(['$locationProvider' ,'$routeProvider', function config($...
0
votes
0answers
21 views

Angular UI-Bootstrap Injector Error

I am trying to use angular ui-bootstrap on my project. After adding the required script dependencies in my layout.cshtml, I get the following error; Error: [$injector:unpr] http://errors.angularjs....
0
votes
1answer
14 views

AutoSave on Angular project with very large forms

I am currently working on a JHipster generated Angular + Spring project. We have very large forms with dozens of fields each, which are not declared with a markup such as <form>, but enclosed ...
0
votes
0answers
15 views

How do we stop the video tag html5?

I want to stop my video when i click the new browser or some other window. I tried this code , its only working for new tab.. document.addEventListener("visibilitychange", onchange); ...
0
votes
2answers
25 views

Want to convert multiple json objects to an array in angular JS

Requirement is : an automation test suite will run. in the teardown activity i am running a java program which will fetch data from excel and generate a JSON file. Json file is being generated ...
1
vote
0answers
8 views

How I can get return from PHP to Ionic Controller?

This is my code. Please help me return id in PHP condition to angular controller. I get undefined in console log. This is my code. Its wrong and bad code? Thanks My Ionic controller .controller('...
0
votes
3answers
35 views

Moment JS - Adds two days

Here is my current MomentJS code: var date = moment($scope.dt); for (var i = 0; i < parseInt($scope.numPagos); i++) { $scope.resultados.push({ 'numerodecuota' : i + 1, 'fechas'...