134 questions
0
votes
0
answers
57
views
Calling async method in ngInit not working in Angular 14 [duplicate]
I have a problem with calling an “async” method in “ngInit” method in angular 14
here is the method I want to call when component initialized:
async setInterfaceDatatableHeaders() {
var bankName = ...
0
votes
1
answer
658
views
ng-click and ng-init variable definition
I am trying to make table header sorter work by using ng-click and ng-init.
Examples in angular js documents require modules, and if I install and update that module, my SPA falls apart for some ...
0
votes
1
answer
381
views
How can assign value to ng-init with conditional expression?
I want to assign variable in ng-init with conditional expression but it's not working with my code. I need to assign isCollapsed value true false with conditional expression.
<a class="email" ng-...
0
votes
1
answer
252
views
Nested ng-repeats with bootstrap collapse, trouble with $index and ng-init
I have a bootstrap collapse accordion with multiple ng-repeats:
<div class="subdiv-wrapper">
<div class="panel-group" id="accordion1" ng-repeat="admin in subdivisions" ng-init="...
1
vote
4
answers
118
views
Angularjs - nested ng-repeat global index
I have next template:
<div data-ng-repeat="supplier in order.Suppliers" data-ng-init="supplierIndex = $index">
<div data-ng-repeat="group in supplier.Groups">
{{something}}
...
0
votes
0
answers
67
views
Am I abusing ng-init?
I have two ng-repeats, one nested inside another, and I have a function I want to run after the last item has rendered.
Current I have it working as follows:
<tr ng-repeat="requestResult in vm.$...
2
votes
2
answers
383
views
AngularJS revert selected value of control nested in ng-repeat on dialog cancel
I want to revert a select tag value that is inside a ng-repeat after cancelling a confirm dialog.
Here is what I have so far:
Relevant HTML:
<table>
<tbody>
<tr ng-repeat="...
0
votes
0
answers
72
views
Passing value from one component to the other in html using angular js ng-init
I tried doing the above thing using ng-init but I guess the scope of ng-init did not allow me to do so.
Lets suppose, I have a dropdown getting populated with a ng-repeat from an array having values ...
0
votes
2
answers
55
views
Does ng-init and ng-repeat bind properly?
<tr data-ng-repeat="x in AList" data-ng-init="loopIndex=$index;">
<select data-ng-model='y.value' style="width:80%;margin-left:20px;" data-ng-change="filter()" data-ng-init="test123=x.name;"&...
0
votes
1
answer
152
views
Controlling ng-repeat iterations
HTML :
<div ng-repeat="data in $ctrl.list">
<div ng-init="$ctrl.applyAction(data)">
<h4>{{data.name}}</h4>
<ul ng-if="data.steps">
<...
0
votes
0
answers
452
views
Angular Error: $parse:ueoe Unexpected End of Expression with EJS
I'm getting unexpected End of expression error when I pass nodejs data to to ng-init. I'm confident I'm doing it right however I'm getting the error message above
I call ng-init like so:
<body id=...
0
votes
0
answers
42
views
AngularJs - Expression is not being valuated correctly
I have defined an expression in ng-init which is being evaluated to false but when I assign it to a variable, its being evaluated to true.
<div class="small-6 medium-6 large-6 cell" ng-init="...
1
vote
2
answers
432
views
Using ng-init to send data from a ng-repeat to another controller
I have a html file that runs a ng-repeat and then each item in that ng-repeat will generate a template which also has it's own controller
On the html file I have something like:
<div ng-repeat="...
0
votes
1
answer
823
views
How to delay my ng-init function until my api call is success
I am working on dynamic form with ng-repeat. I am using oi-select for loading my location. I am loading this form inside modal popup. Regarding get my location values i am calling one api function on ...
2
votes
3
answers
563
views
ng-model overwritten within ng-repeat
I have a table with an input field, I'm setting values to ng-model in each iteration of ng-repeat. I'm getting correct values in each iteration, but all of the ng-model values are overwritten by the ...