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 apps are also frequently known as Single-Page Applications.

learn more… | top users | synonyms (2)

0
votes
0answers
14 views

ionic infinite list scroll with json url

how to make ionic list with json url json code: [{"id":"1","firstName":"John", "lastName":"Doe"}, {"id":"2","firstName":"Anna", "lastName":"Smith"}, {"id":"3","firstName":"Peter", ...
0
votes
0answers
13 views

angularjs: $apply(fn) better than $apply()

I am reading http://angular-tips.com/blog/2013/08/watch-how-the-apply-runs-a-digest/ directive link function: element.bind('click', function() { scope.foo++; scope.bar++; scope.$apply(); }); ...
0
votes
0answers
9 views

Open internal links inside a madal in same modal

I am using bootstrap and angular and i have code like $modal.open({ templateUrl: 'views/abc.html', controller: 'abcCtrl', resolve: { newId: ...
-1
votes
1answer
16 views

How to add new rows dynamically in and add unique ng-model to each row

I am looking to make a dynamic table in HTML and for each cell, I want to give a unique ng-model but I didn't know how to do it can anybody tell me how to do it. <!DOCTYPE html> <html> ...
0
votes
0answers
18 views

mean stack login error: no token provided

Background: I am creating an app using node/express as my backend, mongo as the database, and angular as the front end. I am using jsonwebtoken to authenticate the user. Once the user logs in, a ...
0
votes
0answers
7 views

Rails error with angular js

I am trying to create a button and on that button I have created a popup with angularjs. When I am using normal html tag it is opening the popup properly .But When I am converting in rails tag the ...
0
votes
0answers
10 views

IE-11 Issue - Failed to instantiate module myApp due to: Error: [$injector:modulerr] Failed to instantiate module adComponents

i am facing issue while running my application in IE11 .(My application is in angularjs) When application run in debugger mode, the application is running properly.The issue came only when i am ...
0
votes
1answer
16 views

Bootstrap multiselect dropdown does not work inside div having ng-repeat

I want to use bootstrap multiselect dropdown for selecting multiple values for parameters . I am using it like - <div ng-repeat="param in parameters"> <div>{{param.name }} ...
0
votes
1answer
8 views

How to download the file from dropbox using ng-flow of flow.js?

I am using ng-flow in my angular.js application to upload the file from desktop to my server and its working fine and showing like the following image. Showing upload process Now i want to upload ...
0
votes
0answers
11 views

Is it possible to make reusable form components with ngMessages?

Here is the html code, which i want to make a directive <div class="form-group" ng-class="{'has-success':signupForm.username.$touched && ...
-1
votes
0answers
35 views

How to resolve this error in chrome browser?

My code working correct in Mozilla Firefox browser but in chrome browser gives type error. How to resolve this error give me some suggestions.. Here is error- TypeError: Cannot read property ...
0
votes
1answer
24 views

how to get array input values into database using angularjs and PHP

I have a form in which on click of button input fields get appended. The form is as below. <body data-ng-app="myApp" data-ng-controller="myController" > <form name="educdetailsform" ...
0
votes
1answer
15 views

How to `$inject` factory service in to a `service module`?

I have a factory module called server'. for some reasons i have created a generic web service in aservicemodule. but when iinjectthe server module, i am getting result asundefined` how to solve this? ...
0
votes
0answers
8 views

In-place Editing of Angular Material Checkbox Label

The following code gives me a checkbox with a label: <md-checkbox ng-model="data.foo"> This Label should be editable </md-checkbox> Actual state: I can (un)check the box by clicking ...
0
votes
0answers
12 views

Creating small custom directives

As i am new to angular, i am trying to create small directives. i have some anchor tag with routing to one page, for example : there are two pages. 1 ) page has number of items, second page has ...
3
votes
2answers
26 views

AngularJS - One controller on two sibling DOM elements

I'm trying to do a very simple thing. I'm displaying a list of values with Edit links beside them. Clicking the edit link reveals a form that lets you update the value. (I've simplified the question ...
0
votes
0answers
15 views

Getting error while populating date value using angularjs

I am getting error while populating date value in date field I have the date input field, <input type="date" data-ng-model="personalDetailsObj.personalDetails.dob" name="dob" ...
0
votes
0answers
6 views

Unable to view password protected pdf files in angularjs

Angular JS : How to open the password protected pdf files without providing password, I am using pdf.js and related script file to view the PDF files on pdf viewer on angularjs, i can open and view ...
0
votes
0answers
12 views

Header shown on logout in angular application

I hava an angular application backed by node.js. I have used express.js framework for server creation and passport module takes care of local authentication. I have configured the application in html5 ...
0
votes
0answers
7 views

Django 1.9 with CORS dumping data: “corsheaders_corsmodel” does not exist

I'm developing a Django (1.9) Rest backend and AngularJS frontend with Cross-site referencing. While attempting to execute a ./manage.py dumpdata command, it throws the following exception: $ python ...
0
votes
0answers
6 views

How to pass the focus back to modal from Angular

I am using a modal from where I call a Angular function. Everything happens fine but the control is not returned to my parent window. Is there something I am missing Here is my modal ...
1
vote
0answers
18 views

Serving static files with nginx, available through browser?

I have a server set up using nginx to serve static files (used by two apps, one Django and the other AngularJS). My concern is the following: If someone navigates to Example Domain (or any other ...
0
votes
0answers
9 views

Creating multiple tables in firebase instance

I have a firebase instance with a table of products. When adding a new product, I have a dropdown input that I want to pull a list of users from to select which one is entering a new product. I'm ...
1
vote
0answers
12 views

AngularJS ng-csv file downloading sometimes only

I am using angular ng-csv directive to download the csv file. Sometimes it is not downloading the file. The code is as below <button ng-csv="csvdata" filename="{{ filetitle }}.csv">Download ...
0
votes
0answers
20 views

How do I pass data between components in Angular 2?

I had an component on Angular 2.47 alpha version, which was looking like this: @Component({ selector: 'app', template: ` <div class="col-md-4" *ngFor="#data of datas"> ...
2
votes
0answers
9 views

Subresource Integrity in angularJS App which uses Require JS

I have an angular application with below index.html file Consider in my index.html page I have the following code for SRI (SubResource Integrity) <html> <head> <meta ...
0
votes
0answers
16 views

$interval continues to run when I go from one state to other using route

I have a application in which I have to show a page time-out timer progress bar. I am doing it using $interval. But When I go from one state to other the $interval doesn't get cleared and the shows ...
2
votes
0answers
13 views

TypeError: Cannot read property 'config' of undefined - angularjs localforage

I am tryng the basic example of angular localforage from this link but i got below error: TypeError: Cannot read property 'config' of undefined at new LocalForageInstance ...
0
votes
1answer
11 views

Angular JS - Box score filter - should this be a function or a filter?

I have an app that calculates scores. One of the keys in the scores data is 'period'. I would like to present a box score by period and team in the view. I need to filter and sum my scores data by ...
2
votes
1answer
40 views

Get data from row when clicked and display to editable dialog box

I'm trying to use Angularjs to get data from a row in a table when it is clicked and display it in an editable dialog box. How can I do this? Here's what I have so far: <table> ...
1
vote
2answers
21 views

Angularjs 1.2 adds empty option in select

I have a dropdown that gets its items from database. The default value to be selected in this dropdown is retrieved from a cookie. The problem is, 1. there is an empty option tag as the first option ...
1
vote
1answer
20 views

Linking angular directive with controller

Been following through some Angular JS tutorials and I'm trying to translate them into the Ionic framework but running into some problems. I'm trying to write a reusable HTML control but the model is ...
0
votes
2answers
28 views

Writing Array To $scope (Javascript)

I'm modifying the Altair Material Design Template (http://themeforest.net/item/altair-admin-material-design-premium-template/12190654) & have the following Angular JS controller. I am ...
0
votes
0answers
10 views

ChartJS: margin/padding in scale

I have a problem with chart-line to chart.js, setting the responsive on my page when I open the site by the device, the chart is as follows: image of the problem
-2
votes
0answers
13 views

What are the steps of implementing a pixel tracking code in angular [on hold]

I need to add a pixel tracking in my angular page. I need to know what are the exact steps to do that and how to actually implement the steps.
0
votes
0answers
9 views

Angular $compile misbehaving when returning value

I'm trying to use Angular $compile to compile my template. My template looks like this: var template = '<div>{{obj.someValue}}</div>'; I'm showing my data in another ctrl/view: ...
3
votes
1answer
22 views

Laravel 5.1/AngularJS: Reset password in Angular view (how to validate CSRF token?)

I managed to adjust the default Laravel auth so that it will work as an API for my AngularJS, and so far everything works well. Can go to /reset and enter an email and get sent an email with a ...
0
votes
0answers
23 views

combining class=“{…}” expression w/ ng-class=“{'className' : boolean})” expression?

I have the following code inside the link function of a custom directive that generates a dynamic map using d3... map.append("g") .selectAll("path") .data(topojson.feature(counties, ...
3
votes
1answer
28 views

Convert generic text string in json object into valid url using Angular

This is my first Stack Overflow question so bear with me (I almost always find what I need or figure it out myself but this time is different since I'm just getting my feet wet with Angular). I have ...
0
votes
0answers
10 views

How do I changed configuration details like host name while deploying using Gulp

I'm writing a web application using AngularJS and using Gulp for build. I am calling lot of APIs to get data from AngularJS. Problem is when I am building the application using gulp I want to use ...
0
votes
1answer
20 views

Angular / JavaScript auto hydrate an instance

EDIT thanks to Shaun Scovill's elegant answer below using lodash // create instance and inject server object - inside of the ChartService below var chart = new Chart(serverChartObject); ...
0
votes
0answers
11 views

AngularJS CSS background color animation with bootstrap

css .fade.ng-enter { transition:1s linear all; background-color: lightgreen; opacity:0; } .fade.ng-enter.ng-enter-active { background-color: lightgrey; opacity:1; } ...
1
vote
3answers
20 views

angularjs data binding issue

I am trying to allow a user to submit a comment, where it can be displayed. However, It doesn't seem to be working properly as I am able to get it to displayed as a preview but when I submit, it does ...
0
votes
0answers
14 views

Angular 2: How to execute javascript code that manipulates the DOM from a template?

Is it possible to execute javascript code that accesses the DOM from within a template ? For example, I have a canvas and I want to draw an image on it (after load), I want to do what is done on the ...
0
votes
1answer
14 views

Angular ngview + hash

Imagine you have table data on the left and charts on the right. The table data is angular and charts are shown in D3 wrapped in a directive. The whole page itself is an angular view. I click on a ...
0
votes
0answers
6 views

AngularJS Smart table does not hold value of input field within table cell

My Smart Table of Angular looks like as below- <table id="smartTbl" st-table="displayedCollection" st-safe-src="data.computerList" class="table table-striped"> And rows of the table is ...
0
votes
0answers
8 views

Can't get animations to work with Angular-Flash

I've created an app using angular-flash messages. The messages display properly, but the animation does not seem to work, and the documentation is vague about how to use the alertIn and alertOut ...
0
votes
0answers
6 views

Angular bootsrap ui , pop up an input in a modal template on focus

How can i make an input to pop up on focus using Angular bootsrap ui plugin ,in my angular app ,below is my code for modal view : <div class="col-lg-12 modal-body"> <div ...
2
votes
1answer
35 views

create controller in ng-view page

I want to manage my controller specific to an ng-view page, therefore I put the controller in ng-view page and used that controller specific to that page only. However, the code does not show what it ...
0
votes
1answer
14 views

$compile is affecting all directive elements

I am prepending elements into the DOM and giving them position expressions from the parent controller. As each new one is added the position element is updated on all existing elements on the DOM. I ...