Questions tagged [angularjs-1.5]

Represents questions specific to AngularJS versions 1.5. The primary theme for this release was to improve the upgrade path to Angular 2. In this release, features added that will enable developers to write Angular 1 applications that are closer to the way that applications are structured in Angular 2.

Represents questions specific to AngularJS 1.5.

See https://blog.angularjs.org/2016/02/angular-150-ennoblement-facilitation.html.

For questions about AngularJS 1.6 use , and for the second version.

127 questions
1
vote
1 answer

Which router to use in AngularJS 1.5

I am developing an AngularJS app on its 1.5 version, but i am confused about to use which routing component to use (ngComponentRouter or ui-router). As, they are saying that ngComponentRouter has been depreated. And, my concern is that i can easily…
1
vote
2 answers

The Binding Only Updates After Clicking the Element, Though the String in the Controller Has Already Been Updated (Angular 1.5)

I have an ng-class attribute (that I didn't write on my own). It is bound to a string variable in the controller . It looks like: . When the window first load - it contain the correct…
1
vote
1 answer

No icon for unsorted columns in angular ui-grid

I am using angular ui-grid with angular 1.5. Currently, when a column is not sorted, it does not show an icon. But I require an icon to be displayed indicating that the column can be sorted. Such as this - fa-sort The css has a class -…
Aranta R
  • 23
  • 5
1
vote
1 answer

Http POST for loading a mock json file

I have an application which hits APIs on the server. But the server isn't developed yet so I am using mock .json files on my local machine to proceed with client side development (which uses angularjs). Some of the APIs need to send POST requests…
1
vote
1 answer

Angular 1.5, calling a components function from outside an ng-repeat?

Just started learning Angular 1.5 components, Trying out some of new rules, but can't seem to get my head around this: So in my Main:` angular.module('myapp',[]) .controller('appController',['$scope', '$interval',function($scope, $interval)…
BaneStar007
  • 377
  • 1
  • 4
  • 15
1
vote
1 answer

Force scope to named slot with ng-transclude

I've a directive as follows: The issue is in the , where item would be a…
1
vote
0 answers

Component Router (AngularJS 1.5) useAsDefault config

I am new to Component Router. I am using it in angular 1.5 and I would like to define a default component in the case a user try to access a route not defined in the config : I have an app component with this config : $routeConfig: [ { path:…
Olivier Boissé
  • 15,834
  • 6
  • 38
  • 56
1
vote
1 answer

AngularJS 1.5 Component Router Renavigate

Is there a reload/refresh or like the Angular 2 version a renavigate method for the now deprecated (but much too late for the current project already built on it) component router for AngularJS 1.5? Currently in order to destroy the route components…
mtpultz
  • 17,267
  • 22
  • 122
  • 201
1
vote
1 answer

Bower dependency found in unit test Angular 1.2, but cannot be found Angular 1.5

I have an issue while upgrading Angular from 1.2.28 to 1.5.5. The code itself runs like a charm, but my tests began to fail with the following message. Unknown provider: storeProvider <- store <- translateStorage I use "a0-angular-storage":…
1
vote
1 answer

AngularJS 1.5.x Service Not Bound Correctly and is Not Updating in Controllers

For some reason when I update the factory value the associated views aren't updating. I'm binding to an object in the service not a string so I don't see what I've done wrong, but there is definitely something wrong with the implementation. I've…
mtpultz
  • 17,267
  • 22
  • 122
  • 201
1
vote
1 answer

Controller property change doesn't affect the whole bound property on some directive

Let's say I've implemented a directive as follows: module.directive("foo", function($scope) { return { controllerAs: "model", controller: function($scope) { this.items = $scope.items; …
Matías Fidemraizer
  • 63,804
  • 18
  • 124
  • 206
1
vote
1 answer

Condition in ng- class not working

AngularJS I have scenario of applying class based on a condition in which I'm storing the value in rootscope dynamically and evaluating in html angular expression but still not working
  • sudhir
    • 1,387
    • 3
    • 25
    • 43
  • 1
    vote
    1 answer

    ngAnimateSwap - using boolean expression does not animate as expected

    I modified the original ngAnimateSwap example this is found in the docs enter link description here to use a boolean expression instead of an integer to trigger the slide animation. I would expect the banner to rotate between 'true' and 'false'…
    L. Desjardins
    • 1,465
    • 1
    • 12
    • 22
    1
    vote
    1 answer

    is it possible to send the host name on a $resource request?

    I am using AngularJS 1.5 and ngResource. I have an array of objects, each object containing an IP address that I would like to send HTTP GET requests to in iteration. For example: var arr = [{ip: '127.0.0.1', name: 'myHost'},{ip: '1.2.3.4', name:…
    1
    vote
    1 answer

    mdSidenav service can't find a component when it's inside an Angular component

    I'm trying to figure out why an Angular .component() which has a directive can't be located from the own component's controller. Angular throws the following error: No instance found for handle menu The whole component is: function…
    Matías Fidemraizer
    • 63,804
    • 18
    • 124
    • 206
    1 2 3
    8 9