Questions tagged [angularjs-1.6]

Represents questions specific to AngularJS 1.6. This release brings (among others) news on the component method, $http success() and error() and the ngModelOptions inheritence.

Represents questions specific to AngularJS 1.6. This release brings (among others) news on the component method, $http success() and error() and the ngModelOptions inheritence.

Migration from 1.5 to 1.6 is explained in this article from the Angular documentation.

158 questions
0
votes
2 answers

Angular not binding data on html directly

I'm a beginner in Angular (ver 1.6.3) and i ran into this problem: i have a controller called prof: (function () { 'use strict'; angular .module('app.prof', []) .controller('ProfController', ProfController); /**…
Orsu
  • 405
  • 6
  • 19
0
votes
0 answers

Angular 1.6 Upgrade causes: TypeError: Cannot read property 'nodeName' of undefined

Upgraded to Angular 1.62 and a working set of complex arrays stopped working and I get this error early in page load. I think I am loosing track of the $index? $scope.purchaseList = vm.pq.purchaseItemsList; …
Bob Cichon
  • 199
  • 1
  • 1
  • 9
0
votes
2 answers

In Angular1.6 $anchorScroll, Offset

Can someone explain to me how to use $anchorScroll, Offset, scrollX, scrollY in Components which is in AngularJS 1.6?
Arjun
  • 103
  • 2
  • 13
0
votes
1 answer

Unit testing ngComponentRouter - Angular 1.5.x

I am trying to build basic unit tests for an Angular 1.5 with the purpose of A) practicing unit testing, and B) familiarizing myself with component-based development in Angular 1.5.x. I'm trying to unit test a simple component, but I keep getting…
0
votes
1 answer

Execute a function when user has stopped typing in AngularJS

I am using below library to use autocomplete directive in my module for AngularJS!. [https://github.com/JustGoscha/allmighty-autocomplete] I want to execute a function when user has stopped typing, is there a way I can do this?
Raaj Dubey
  • 172
  • 1
  • 14
0
votes
0 answers

ng-model-options update on blur not updating with new value

I'm using ng-model-options="{ updateOn: 'blur'}" inside ng-repeat and it is updating on blur with the previous value when clicking on the button (increase function). Example: the value in input box is 10 and clicking on the butt change to 11. but…
0
votes
2 answers

checkbox scope is binding but not updating even with dot in angular.js 1.6.x

Code related to the Disclosures submission (app/views/research/disclosure.html.erb) for a research article goes here. var researchDisclosureApp = angular.module('researchDisclosureApp', []); researchDisclosureApp.controller('submissionController',…
dinnu93
  • 3
  • 2
0
votes
2 answers

ng-model is not working with ng-value in AngularJS

Below is my View page
Name is required
wasim beg
  • 73
  • 13
0
votes
2 answers

Trigger a click to first element of first element in ng-repeat in controller

Hii i need to trigger a click in first elements #first > #second > #third > .element-for-trigger-click , see here
user6644024
0
votes
2 answers

My custom input field directive is not working for change events

I have this custom directive: eDiscovery.directive('customHighlightUsername', function () { return { restrict: 'A', link: function ($scope, elem, attrs) { elem.bind('change', function () { console.log('bind works'); …
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
0
votes
1 answer

Passing $scope to services, seems like a good idea, but..?

I am finding this pattern to be quite convenient, but I am wondering if it will come around to bite me later: app.controller('MyController', function($scope, $stateParams, MyPageService){ var foo = MyPageService.foo($scope); scope.bar =…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
0
votes
3 answers

controller and service for popup modal

I am fairly new to AngularJS (version 1.6), i have a little mission - to implement a new popup modal when clicking an "edit" button that will have some text-boxes to edit something. I am failing to understand how to call each of js files and because…
E.Meir
  • 2,146
  • 7
  • 34
  • 52
0
votes
0 answers

Angular 1.6 NestedRoute (Single Page Application)

I am trying to have single page application in agularjs 1.6 using ngRoute.My code is as follows. Angular Code let mainAngularModule = angular.module("acc-management",…
0
votes
1 answer

How to update text field value based on comparision with dropdown value in Angular JS?

Hi I am new to Angular JS. I have one HTML file which has one dropdown and one textarea. Text area value will be updated based on selected dropdown value. Note here: textarea won't display the same value which is selected by user in dropdown. It…
Teddu
  • 207
  • 6
  • 18
0
votes
1 answer

angular-route1.6.1 does not work correctly

thank u for looking! Here's my question. [app.html] ... ...