Questions tagged [angularjs-1.7]

Represents questions specific to AngularJS 1.7. This release is the final release of AngularJS.

AngularJS is planning one more significant release, version 1.7, and on July 1, 2018 it will enter a 3 year Long Term Support period.

Resources

22 questions
13
votes
1 answer

When to use the AngularJS `$onInit` Life-Cycle Hook

With the release of AngularJS V1.7, the option to pre-assign bindings to has deprecated and removed: Due to 38f8c9, directive bindings are no longer available in the constructor. To migrate your code: If you specified…
6
votes
1 answer

Difference in order that ng-click and ng-change are fired between Angular 1.2 and Angular 1.6

Something happened between AngularJS 1.2 and 1.6 to reverse the order that ng-click and ng-change fire in. I've made a plunk to illustrate it: http://plnkr.co/edit/XgbgLSuP1znhWszeyiHd?p=preview The default for this page is to use Angular 1.2.28.…
jimbobsweeney
  • 107
  • 1
  • 9
4
votes
2 answers

AngularJS -$compileProvider.preAssignBindingsEnabled is not a function

I'm getting the following error message when attempting to do a gulp serve on my AngularJS (ver 1.6.10) app: Error: [$injector:modulerr] Failed to instantiate module myAppName due to: $compileProvider.preAssignBindingsEnabled is not a…
NateH06
  • 3,154
  • 7
  • 32
  • 56
2
votes
1 answer

protractor: custom ExpectedConditions - on attribute change

I'm trying to implement custom ExpectedConditions method, that will wait for element attribute to change. Here is my solution: const ECC = function() { /** * Expect element attribute to have specific value. * * @param {ElementFinder}…
Majesty
  • 2,097
  • 5
  • 24
  • 55
1
vote
0 answers

variable not defined error in AnjularJs during third party jquery plugin

We are trying to use the third party Jquery plugin to open client view when they click on the button. I have added I have directive angular.directive('fileSelector', function()…
sree
  • 868
  • 2
  • 12
  • 35
1
vote
1 answer

How to delete an HttpOnly server-side session cookie when closing a browser window

I have a requirement to close a session held by a JSESSIONID cookie when the user closes the browser window. This cookie is set at server-side by Spring Security: @Configuration @EnableWebSecurity public class SpringSecurityConfiguration { …
Serg M Ten
  • 5,568
  • 4
  • 25
  • 48
1
vote
1 answer

ngToast returns undefined when used inside a service

I am trying to create a simple notification system using ngToast through this documentation - http://tamerayd.in/ngToast/. Everything seems to work correctly when using it inside my module(login-flow) but if I'm trying to pass it to a service…
1
vote
0 answers

How to do multiple redirections with multiple permissions in angularjs using angular permission library?

I want to have a route that has multiple permissions, and it can only be accessible if all of them are met and I want a different redirection rule for each of them, somewhat like below: { only: ['loggedin', 'hasProject'], redirectTo: { …
1
vote
1 answer

Protractor: mock angularjs attribute

I have a common module that does contain noDoubleClick attribute, that I'm using to prevent form buttons to be clicked twice accidentally. (function () { function NoDoubleClickDirective() { return { restrict: 'A', link(scope, elem)…
Majesty
  • 2,097
  • 5
  • 24
  • 55
1
vote
2 answers

angularjs 1.7 select dropdown is showing an extra option value

I am trying to migrate angularjs from 1.5 to 1.7 in my app. I have my model data as below: $scope.colors = [ {name:'black', shade:'dark'}, {name:'yellow', shade:'light'} ]; $scope.myColor = ''; The html:
0
votes
0 answers

AngularJS1 google reCaptcha v3

Can anyone help me how to implement the google recaptcha. I have already register and have my own site key and secret key. I'm using AngularJS 1.7.9 and asp.net core web api. I am having also an issue of "Indicate whether to send a cookie in a…
0
votes
0 answers

AngularJS 1.8.1 Component not loading in Internet Explorer

This is my first time using angular js components and everything works fine in all browsers except Internet explorer. I have added meta tag . Is there a way to make the components render in ie. I have a component which is not loading any HTML…
0
votes
1 answer

Trying to assign a value to a non l-value - AngularJs with colorpicker

I wrote code related to the color picker in anguarjs 1.7.. When I click to color picker to select next color it gives the error: Trying to assign a value to a non l-value Here is my static code:
0
votes
1 answer

ui-bootstrap modal won't close or dismiss

New to ui-bootstrap and I've gotten the modal to appear, but can't get it to dismiss with a button press. I've tried a many combinations but nothing seems to work (or it makes the modal not appear at all). The modal is in a separate file as:
0
votes
0 answers

Button component text change from parent controller on onclick is not working - AngularJS 1.7

This is for an existing project, here I am using AngularJS 1.7. I have a toggle button component, below is toggle-button.component.js angular.module('cxvr') .component('toggleButton', { require: {}, bindings: { text: '=', obj:…
Anna
  • 973
  • 4
  • 13
  • 26
1
2