Thats not true unless you can guarantee that every member of userDetail has the exact same value for customerId. US to Canada by car with an enhanced driver's license, no passport?
The reason this button idiom makes sense is that it answers that question: in the controller we want to do something with the customerId corresponding to the button that was pressed. What determines when to call that function (and with what arguments), if not a button press? I created a node.js get request that get the ID of that customer that got logged in by providing the username. }, (err) => { When logged in in my app the username is sent to a service and from that service, I get the username to a specific ts page. Im not seeing any value there. pass implies that its sending something somewhere, but it doesnt appear to be doing that, It calls two methods whose names start with 'get`, implying that they get something, yet their return values are ignored. array stays 0 Connect and share knowledge within a single location that is structured and easy to search. getPdfFile(){ Sorry, I get what you meant before, it really does seem that there is a button dedicated for a customer. How would electric weapons used by mermaids function, if feasible? this.userDetail = res; I've got an *ngFor statement which creates a new div for each item in the collection and displays a value in that div using double braces {{ }}. Therefore I cannot understand which customerId you need back at ts file. And even so: go through the Tour of Heroes tutorial. If youre still reading, I think naming things is incredibly important. }); from this, I get the customer id in HTML page. when this button is pressed You can stop reading now and come back later if you wish, because thats the important issue. Do weekend days count as part of a vacation? In the relevant part of your template, you use an ngFor structural directive, which creates many similar sections of markup, each having a different value for Customer_ID (which really needs a more customarily formatted name like customerId).
What purpose are these openings on the roof? Is there another way? What are good particle dynamics ODEs for an introductory scientific computing course? }, Do yourself a favor and read angular.ios guide on property binding. Here are some problems I have with passdata: passdata modifies external state. Ill try to just reiterate the main point here. let filedataa = document.getElementById(filedata).value; but I got a new problem So, even if you managed to achieve what it sounds like you want to achieve, you would loop through every single item, each call to passdata trampling over the actions of the previous call. html page