Questions tagged [angular1.6]

144 questions
4
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
  • 113
  • 1
  • 8
3
votes
0 answers

Does anyone know how I can embed Vue component/Project into Angular JS?

I have spent some time on this. I have an HUGE Angular JS project ( Angular 1.6.5). I would like to move some components into Vue. First thing we came across is Web Components: but AngularJS application must be on version 1.7.3 or higher. We…
user659730
  • 381
  • 1
  • 3
  • 7
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,235
  • 14
  • 33
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
  • 23,101
  • 16
  • 132
  • 246
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
  • 944
  • 4
  • 20
  • 40
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
  • 216
  • 2
  • 11
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
  • 581
  • 1
  • 9
  • 24
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…
user3871
  • 12,432
  • 33
  • 128
  • 268
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
  • 3,317
  • 16
  • 46
  • 92
2
votes
1 answer

Fixed number of rows per page using pdfmake.js

Defined an own table layouts using pdfmake.js. On print I want per page to contain 7 rows(fixed).I have tried adjusting the height and width of the table cell to contain 7 rows but however if the data in table cell increases the page accumulates…
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,302
  • 3
  • 19
  • 43
2
votes
2 answers

Angular 1.6 & multiple modules: sharing global variable between modules & components

I'm using Angular 1.6.7. I have created multiple modules in my app. How can I pass a constant (e.g. "rootURL") defined in a parent module (myApp) to a child module (childApp)? More specifically, I need to assign the value of "rootURL" to the…
Telly Ipock
  • 133
  • 3
  • 12
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
  • 616
  • 10
  • 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
  • 3
  • 11
1
2 3
9 10