Angular 1.x migration performance issues

I am upgrading a huge angular 1 project from 1.3.x to 1.6.x because we require some patches in the latest version. After updating it seems that the entire application has slowed dramatically. I have been looking through the migration documentation bu...
more »

2017-03-17 20:03 (0) Answers

Error: $injector:modulerr ASP.Net Core

I'm trying to get angular working in my dotnet webapi project. I've installed angular and angular-ui-router through npm and all scripts added to my default.html page with development and stage/production. To test it, i've written the following: <...
more »

2017-03-15 22:03 (1) Answers

Target only 1 button in Angular

Im getting the values in a div from the DB and displaying using ng-repeat: <div ng-controller = "myTest"> <div ng-repeat="name in names"> <h4>{{}}</h4> <button ng-class="{'active': isActiv...
more »

2017-03-15 19:03 (3) Answers

cannot bind dropdown with List in angular

Can't bind dropdown with List in AngularJS: <select> <option ng-repeat="x in list">{{x}}</option> </select> app.controller('myCtrl', function($scope) { $Scope.list=[{id:1, name='name 1'},{id:2, name='name 2'}]; }); ...
more »

2017-03-15 12:03 (4) Answers

Webpack script in index

I recently finished to add Webpack to my Angular2 web application and I have an issue with some external libraries variables. I want to use for example moment.js and I need to declare moment, I used to do it like declare var moment but after the web...
more »

2017-03-14 15:03 (2) Answers

Browser crashes when upload file with Angular

I am trying to upload files in JSON using angular and FileReader Api. The problem is that for files larger than 600 - 700 KB my browser crashes. As far as I can see the problem occurs when requesting against a resource and not when the file reader ...
more »

2017-03-14 11:03 (1) Answers

Angularjs Load object into array via forEach

I have an array of Drug Codes 'BARB', 'HALU', 'METH'. I want to loop thru these codes and create a new object for each one. var saveObj = {}; saveObj.SelectedList = []; angular.forEach(self.DrugNamesSelected, function(value, key) { //Load Obje...
more »

2017-03-14 03:03 (1) Answers

Angular $http POST sending empty object as body

I have some pretty vanilla code, but can't seem to figure out the issue. On the server side, I get an empty object in the body of the request when sending the POST below. I'm using express on the server side. My server side works fine when I use Pos...
more »

2017-03-13 13:03 (1) Answers

AngularJS directive not called

Hi guys I've created 2 directives, one for each object that I have, one is adminGroups, the other is adminProfiles. I have this problem, the 2nd directive is not called at all. This is the controller: angular.module('Modulx').controller('AdminsContr...
more »

2017-03-13 09:03 (3) Answers

Use of apostrophe vs single quote/backtick

I'm new to Angular, and while following along to a tutorial I made a slight change out of habit when writing the module states: .state('sports.medals', { url: '/:sportName', templateUrl: 'sports/sports-medals.html', resolve: { spor...
more »

2017-03-12 22:03 (2) Answers

AngularJS Custom Directive Accessing Scope Data

We are brand new to AngularJS but are trying to display some html tooltips from a custom directive in Angular and since new new to this technology are struggling to come up with a proper solution to this issue. We had a version of a solution runni...
more »

2017-03-12 19:03 (1) Answers

IIFE declation of angularJs filter

I'm new to angularJs and trying to apply the "John Papa style guide" for angularJs coding. I have the following html code : (function(){ "use strict"; angular .module("crm",[]) .controller("studentList",studentList) ...
more »

2017-03-12 15:03 (1) Answers