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
0
votes
1 answer

How to control data sharing/blocking between Angular directive controller and the controller of the view the directive is placed inside of

I am learning AngularJS 1 right now and am confused about scope and directive controllers. I don't understand why my directive controller has access to all the variables defined in the controller that is controlling the view in which the directive…
TDB
  • 367
  • 1
  • 3
  • 15
0
votes
1 answer

Angular 1.5 Component Example

I am fairly experienced using Angular pre-1.5, but I am currently starting to develop a web application based on 1.5 components. After much troubleshooting, I still can't seem to get a basic template working - can I get another set of eyes to please…
Dean Zaslow
  • 87
  • 2
  • 9
0
votes
1 answer

Karma/jasmine testing error: "Uncaught TypeError: Unexpected anonymous System.register call."

I am trying to get basic karma-jasmine test running but I get the following error. Chrome 51.0.2704 (Windows 7 0.0.0) ERROR Uncaught TypeError: Unexpected anonymous System.register call. at…
npat89
  • 253
  • 1
  • 2
  • 5
0
votes
0 answers

How can I assign function to 'template' property of component? This function uses $state

I need to change bavbar template depending on current state, but I cannot access to state from component. import template1 from './navbar.html'; import template2 from './navbar_logged.html'; import controller from './navbar.controller'; import…
boooni
  • 153
  • 1
  • 3
  • 9
0
votes
1 answer

Angularjs 1.5.5 with @Component decorator

I am having a hard time finding a good code example of component using Angularjs 1.5.5 ( NOT Angular 2.0 ). Does Angular 1.5.5 really supports decorators like @Component OR @Injectable and if yes can someone please share a good code example ? Also i…
ATHER
  • 3,254
  • 5
  • 40
  • 63
0
votes
1 answer

Cant get $rootScope to work inside angular.element with ECMA 6 and angular 1.5 component

I've just started using the new version of Laravel angular. I'm trying to add some code to change a rootScope variable when scrolling down the page. this is what i have so far. $onInit(){ this.$rootScope.showTestBanner = true; var $rootScope…
0
votes
2 answers

AngularJS Route shows next view and then sends be back to previous view

Using what I thought was a basic route, but it don't like me. .config([ '$routeProvider', function($routerProvider){ $routerProvider .when('/view',{ templateUrl:…
David Lozzi
  • 14,697
  • 9
  • 28
  • 44
0
votes
2 answers

nglink not working in phantomjs component test for angular 1.5

I have a navbar component: .component('navbar', { templateUrl: 'app/common/navbar/navbar.html', controller: NavbarController, bindings: { state: '<', weekLabel: '<' } }) /** @ngInject */ …
0
votes
2 answers

How to eval an attribute as string which is a custom function using Angular 1.5 component?

I'm using Angular 1.5. I created a menu which is a component. The menu component accept as attribute a list of jsonObject to create each menuitem. A menuitem is a component as well. I would like to add an…
J.BizMai
  • 2,621
  • 3
  • 25
  • 49
0
votes
0 answers

AngularJS Factory Data Not Updating In Controller

I'm not sure what I've done wrong this is how I've setup other factories to share data as far as I can see, but even though the array should be passed by reference and I don't overwrite the array so the reference isn't lost the template never loads…
mtpultz
  • 17,267
  • 22
  • 122
  • 201
0
votes
1 answer

Error: $rootScope:infdig after migration from angular 1.4 to 1.5

After migration from angular 1.4 to 1.5 'Error: $rootScope:infdig ' is apeared. There were some usages of ng-init in templates but their removing does not help. Problems occurs when accordion-group from ui-bootstrap (v.0.13.1) is used after second…
0
votes
1 answer

ngModel controller and templateUrls in AngularJS 1.5

We have the following scenario: there is an container which can have x input elements (x >= 0) Each input element use normal ng-binds In the container there is an function which adds an $parsers and $validators to each included…
Anti-g
  • 121
  • 1
  • 4
0
votes
1 answer

Angular (1.5.0) ng-router not working

I'm using angular,angular-animate,angular-route v.1.5.0 , ui-grid v. 3.0.7 ocLazyLoad v. 1.0.9. I get this error : TypeError: a is not a function at d (angular-animate.js:2141) at angular-animate.js:2131 at h (angular-animate.js:3174) at…
-1
votes
2 answers

jquery.marquee.js can not run with angularjs

i'm a newbie of AngularJS (using v1.5) anh now I have a problem: I use javascript jquery.marquee (https://aamirafridi.com/jquery/jquery-marquee-plugin) in html same that: