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
3
votes
0 answers

Ng-mock: $compileProvider doesn't have method 'preAssignBindingsEnabled`

I've been rewriting directives in Angular 1.5.8 to components. I want to write unit tests with '$componentController` just like described here: https://docs.angularjs.org/guide/component. The problem is that I'm getting error at this line: var ctrl…
3
votes
0 answers

How to Implement $compile(..)($scope) service inside angular 1.5 component, where $scope injectable is removed?

I am currently using Angular 1.4, in the process to shift to angular 1.5, I am rewriting all the controllers into component style and removing $scope injectables inside the controller. In one of the situation, I used $compiler service to compile…
2
votes
2 answers

How to pass a template via bindings to an AngularJS Component

I'd like to pass a custom template, via bindings, into an AngularJS Component and render it using his scope. Something like this (pseudo-code, this is not working): angular .module('myApp', []) .controller('mainController', ($scope) => { …
2
votes
1 answer

How to make the image appear front/back on click using angular1?

I would like to implement in such a way that , when we click the image ,the selected image should appear front and the rest of the images should hide behind the selected image . I have got the code reference of similar functionality achieved using…
Vivek
  • 281
  • 2
  • 7
  • 21
2
votes
1 answer

how to bind input text and combo box in angularjs 1

I have two controls in a form. zip code - (input type text) and city - (select options) The back-end rest service sends json object which will contains zip codes and city names. I want to change city when zip code changed and vice versa using…
Renuka
  • 136
  • 6
2
votes
0 answers

ESLint Recommended Shareable Config for EcmaScript 5

I've setting up ESLint for a legacy project that uses ES5, but the shareable configs all seem to be ES6. So after pulling in eslint recommended and google I've had to start adding extra config to prevent ES6 checks like no-var. I was hoping that I…
mtpultz
  • 17,267
  • 22
  • 122
  • 201
2
votes
0 answers

angular 1.5 get scope date from transcluded element in component *NOT directive*

I have component that implements logic with transclude How can i get component scope i'm transcluded button NOTE:…
2
votes
1 answer

set uib-typeahead attribute Dynamically

I have a Directive which wraps uib-typeahead, the thing is that I want to populate the uib-typeahead with different arrays of objects which means different names for the keys of the objects inside the arrays I have this My directive which wraps uib…
2
votes
0 answers

How do I un-register a decorator in AngularJS?

I ran into a test case where I want to register an AngularJS decorator in the context of the unit test. The decorator helps me mock the interaction between a parent component and its child component. I register the decorator in my beforeEach, and it…
RMorrisey
  • 7,637
  • 9
  • 53
  • 71
2
votes
0 answers

Angular New Router is now ngComponentRouter. What's the equivilant for $componentLoaderProvider

Does anyone know the new ngComponentRouter equivilant for $componentLoaderProvider to tell the router where to find the views. I have a home component located off the root of the application in app/components/home/home.html along with the…
DRobertE
  • 3,478
  • 3
  • 26
  • 43
1
vote
0 answers

Update angular-moment-picker to use a different time zone

I'm using angular-moment-picker with moment-tz and it correctly uses the time zone originally set, but when I change the time zone for the model, the picker changes back to the local time zone of the browser instead of the time zone on the model. I…
CJ Dennis
  • 4,226
  • 2
  • 40
  • 69
1
vote
0 answers

angularjs and uiGrid

I have problem in using ui-grid with components in angularjs version > 1.5. Can someone help me to give me a method to do that? Because I don't use scope and in the documentation of ui-grid is for angular last than 1.5 I tried this code and doesn't…
developer
  • 125
  • 1
  • 11
1
vote
2 answers

Angular 1.5 component - template not rendered after converting from directive

I have an Angular directive (myUser) which is working. It's defined in an AngularJS 1.5 project, using TypeScript like this (I'm assigning the controller directly inside the directive) . The directive (myUser) is being linked to it's parent module…
Chris Halcrow
  • 28,994
  • 18
  • 176
  • 206
1
vote
1 answer

Using Angular 1.5 - Can you have a component inside another component's template?

New to angular 1.5 and trying to better understand component communication. Wondering if I can have a component inside another component's template? And if so, how do they communicate with one another (using require?)?
1
vote
0 answers

How to update to angular 1.5

I am working with the code from below link http://ionicmaterial.com/ and wan to work with angular 1.5. I have checked the package.json and they have not specified any angular dependency.So don't know where and how to update to angular 1.5. I have…
FalconFlyer
  • 155
  • 1
  • 1
  • 9
1
2
3
8 9