Questions tagged [variable-binding]
18 questions
0
votes
1 answer
Can't bind variable to string
I am new to angular and I am currently using Angular 7. I can't add the variable to data-link property.
In my ts file I have a variable :
export class PortfolioComponent implements OnInit {
var = "#item1";
}
And in HTML I have:

Ghada Rahhal
- 1
- 4
0
votes
1 answer
Variable binding using soci with PL/pgSQL
I'm using SOCI library to execute database queries on both Oracle and PostgreSQL databases. I got the following error :
Cannot execute query. Fatal error. ERROR: bind message supplies 1 parameters, but prepared statement "" requires 0"
When I…

Amith Chinthaka
- 1,015
- 1
- 17
- 24
-1
votes
1 answer
Python: function defined in while loop refers to old variable
I have a function that I define in a while loop that is called by code I do not control.
In the following example, access() always returns the value 1. Why? And how can I make access() return the latest value?
while True:
g = [1,2,3]
def…

2080
- 1,223
- 1
- 14
- 37