Questions tagged [angular1.6]

143 questions
3
votes
2 answers

component communication angularjs 1.6

I need to implement component communication between two independent components. I have used require keyword but it throws an error Error: $compile:ctreq Missing Required Controller Controller 'cone', required by directive 'ctwo', can't be…
Ebin Manuval
  • 1,045
  • 13
  • 29
3
votes
2 answers

how to upload files with angular using CORS

I'm using restangular 1.51 with angular 1.6. My html looks like this and the angular code (based on the discussion here): let directive = { .. link: (scope, element, attrs) => { let inputElement =…
abbood
  • 21,507
  • 9
  • 112
  • 218
3
votes
0 answers

Monaco editor does not work in angular tab

I am using Monaco editor with angular 1.6, In my UI I have different tabs(as in [this][1] example) pointing to different html page. [1]: https://www.w3schools.com/howto/howto_js_tabs.asp I am using Monaco editor, but the problem is it is getting…
user3649361
  • 874
  • 2
  • 17
  • 39
3
votes
1 answer

How to enable backspace on autocomplete field angular

I have some autocomplete fields in a form that doesn't clear the text when backspace key is pressed. I need to enable the backspace function but i dont know anything about angular js and I haven't find anything helpful online for this…
Stad
  • 186
  • 1
  • 10
3
votes
1 answer

webpack uglify error: Unexpected token: keyword (function)

I am trying to run npm run build but I can't do this. And I am using webpack 2, But it is giving me an ERROR in uglifyJs app.3e1e32973e47000acf37.js from UglifyJs Unexpected token: keyword (function)…
satendra
  • 103
  • 1
  • 8
2
votes
1 answer

How to run a AngularJS project in 2019?

I want to run a project witch written by Angular 1.5 , and I know it was lunch by gulp . and first I use npm install to install all dependencies , and then use gulp to run it. but failed. It gave me 800 problems. most of them looks like : 226:7 …
Neko
  • 441
  • 5
  • 21
2
votes
0 answers

get calculated scrollY and height of container element

In Angular JS 1.6 (I know it's old— Legacy software), I want to simulate infinite product scrolling. If the user scrolls to the bottom of all the products listed, the next pagination API is called and the elements are appended to the products…
Growler
  • 10,676
  • 21
  • 100
  • 224
2
votes
3 answers

ngRepeat iterate with array objects in angularjs

I'm trying to figure out on how to iterate the array using ngrepeat If I have a array of data like below { "People": [{ "name": "Andrew Amernante", "rating": 3, }, { "name": "Frank Wang", "rating": 5, }, { …
UI_Dev
  • 2,885
  • 12
  • 36
  • 79
2
votes
2 answers

Ng-repeat one-time binding and "track by" change

Our web app uses ngRepeat to display a list of items. The array and its objects are never changed, but values of the objects inside can be modified by the user. We generate a unique trackId's for each item. This trackId is updated every time the…
2
votes
1 answer

Why does my angular1.6 controller not bind correctly when I have a break point

HB.Core.Directives.directive('hbMultiselect', [ function() { return { restrict: 'E', templateUrl: '/hb-core/library/directives/hb-multiselect/hb-multiselect-ptl.html', scope: {}, …
Luke Xu
  • 2,020
  • 2
  • 14
  • 39
2
votes
3 answers

Angular 1.x - What's going on with the order of $scope?

I have a controller where I need to load content using ajax. While it's loading, I'd like a spinner to appear in the interim. The code looks something like the below: And the…
mche
  • 546
  • 8
  • 16
2
votes
1 answer

ag-grid does not work properly with angular 1.x

I am trying to use ag-grid for one of my project work and was trying to configure it with webpack & Angular 1.6 i have configured it as follow Module var agGrid = require('ag-grid'); agGrid.initialiseAgGridWithAngular1(angular); module.exports =…
Dark99
  • 81
  • 1
  • 11
2
votes
0 answers

Angular cannot pass function by reference into an isolated scope (several nested directives)

I have 3 nested directives: ExchangeWidget -> CoinInput (2 total) -> Coin (Several) The code: ExchangeWidgetDirective 'use strict'; import cointInputTpl from './exchangewidget.html'; function exchangeWidgetComponenet($log) { 'ngInject'; …
Oleg Belousov
  • 9,633
  • 12
  • 68
  • 119
2
votes
0 answers

Application using bootstrap 3 and 4 together has conflicts

I have an App that uses bootstrap 3 and 4. Its a pretty massive application and built on combination of angular 1 and 2 and we already have a lot of scss files written for our angular 1 application. I need to: Make sure all the scss written until…
Abhishek Bhan
  • 21
  • 1
  • 3
1
vote
3 answers

Angular JS Error: [ngRepeat:dupes] Duplicates in a repeater are not allowed

I am facing an issue of [ngRepeat:dupes]. systemService.getAllSystemSettings().then( function (obj) { $scope.project.meta.franchise = obj.find(item => item.keyword === "Program"); console.log($scope.project.meta.franchise); …
Dinshaw Raje
  • 849
  • 10
  • 31
1
2 3
9 10