183 questions
0
votes
1
answer
2k
views
How to assign typescript variable to any attribute value?
I have a variable in my typescript file
public variableName: something;
I want to use this variable to replace custom attribute value in html code
<input type="radio" name="someName&...
-1
votes
1
answer
96
views
How can we find x-path expression for class ng-binding?
How can we find x-path expression for class ng-binding? Here is the example:
<div class="product_card-img-info">
<h5 ng-bind="pack....
0
votes
1
answer
245
views
ng-bind for title tag goes outside of the element
ng-bind used for the title tag inside the header behaves weird. This is my code:
<title page-title ng-bind="page_title"></title>
and here's the output:
My Page Sucks
<title ...
0
votes
1
answer
57
views
If have_post not available then ng-bind
Hope you all be safe in this time of crisis. I'm looking for a solution to program my theme.. I do sometimes have content in my wordpress however i also does via a json. I wrote something but its ...
0
votes
1
answer
744
views
JavaScript get span value from “ng-bind”
There are many similar posts but I can't find my solution.
My code is:
<span ng-bind="selected.S_date" class="ng-binding">Different value all the time here.</span>
I want to get the ...
0
votes
2
answers
640
views
Display a table based on an array without using table elements but using display properties
Hi I have created a table using display properties, now i have an array and i want to iterate through that array and pring the value of column and rows, here is my code : -
html:=
<div id='table'&...
3
votes
2
answers
684
views
How do I highlight colors for search results?
Could you please help to highlight the words searched in yellow?
The below an example of code has been written to filter the words among the displayed data from JSON feed URL.
angular.module('...
0
votes
1
answer
465
views
element in span with ng-bind not displayed
Here my problem.
<span class="col-sm-3 col-md-3" ng-bind-template="{{controller.getToolTip()}}">
<span class="icon " ng-class="controller.getIcone()" aria-hidden="true"></span>
&...
0
votes
2
answers
4k
views
bind to ngModel but got "undefined" ( Angular 8)
I have bound a property to ngModel , but it always gave me undefined
<div>
<input
type="radio"
name="input-alumni"
id="input-alumni-2"
...
0
votes
1
answer
135
views
Optimise ng-bind directive in angularjs
In my angular js app I have an array of objects $scope.time which contain a name, the current time and another defined time in milliseconds.
In the front-end I'm using ng-bind to calculate the ...
1
vote
1
answer
98
views
unable bind using ng-bing in Angularjs
Trying to insert HTML content on the page using ng bind as below but unable to bind it.
Script:
SS_Mod_App.controller("SS_Ctrl",/*"$interpolate",*/ function ($scope, $http, $location, $window, $sce/...
0
votes
1
answer
633
views
Unable to bind the scope variable to the html element in angular js
I am getting some value like "OPEN" or "CLOSE" from the function $scope.getPIRData, that I am storing in the $scope.pirstatus , I am trying to show that in the HTML Header tag<h1> {{pirstatus}}&...
0
votes
1
answer
202
views
How to bind angular.js data to imported html?
I have imported an external local html file (index2.html) into my html file's div (index.html, #container). I want to use angular to bind data values to some of the tags in the imported html file.
...
1
vote
1
answer
37
views
Append value to translation token with ng-bind
I'm trying to iterate through an element 5 times. For that I'm using ng-repeat with a track by $index. After that I would like to use the value from $index to add to a translation token. This index ...
0
votes
0
answers
212
views
angularjs: event after interpolation/binding happened
Let's say I have an angularjs directive with a template like this:
<span>{{ myLabel }}</span>
Is there an event/service I could tap into to get the resulting interpolated html e.g:
<...