'I understand' why there is still 'a lot of anger' over financial crisis: Bank CEO Jamie Dimon

The head of the biggest U.S. bank said public thought bank bailout was "unfair."

Ten years after the financial crisis caused millions of Americans to lose their jobs, houses, or both, the head of the nation's largest bank said he knows many people remain angry at banks.

“Some [banks] caused the problem and I understand that the American public looks at it and it's unfair, and it was,” Dimon said in an exclusive interview for "This Week." “They look at it like the elite Washington banks… kind of got bailed out [while] they suffered. And there's some truth to that. They didn't see Old Testament justice. So I understand why there is a lot of anger out there.”

The crisis, the worst financial downturn since the Great Depression, was triggered by bursting of a bubble in housing prices that had been fueled in part by increased risk in mortgage lending. Housing foreclosures soared and unemployment reached 10 percent. But despite allegations of irresponsible lending and wrongdoing by some big banks, the U.S. government helped to bail out some of the largest financial institutions and no bank executives were prosecuted.

“All the banks -- banks got help -- I mean I think the government did the right thing, I want to give full credit," Dimon said. "But not all the banks needed that. And all those banks including JPMorgan continued to lend money every day to all their clients nonstop around the world.”

Now, with unemployment below 4 percent and high consumer confidence, Jarvis asked Dimon how much credit President Trump deserves for the strength of the economy.

The JPMorgan Chase CEO said Trump's policies have been beneficial. "When President Trump was elected, confidence skyrocketed – consumers, small business, large corporate – and because pro-business, pro-competitive taxes, pro some regulatory reform … and that has helped the economy."

"It's impossible to tease out how much, but it has helped the economy, just like President Obama helped to stop the economy from getting much worse," Dimon said. “Yeah, he should take some credit for that.”

Dimon added that the banking system is strong and the collapse of a major institution like that of investment bank Lehman Brothers in 2008 could not happen today. “The banking system is very, very, very healthy. And regulators should actually take a little bit of a victory lap because Lehman would not happen today,” he said.

Dimon spoke to Jarvis after a public panel at JPMorgan Chase on Wednesday where he took aim at Trump, suggesting he could beat the president in an election.

“I said this before Trump was elected, 'You're not going to get a wealthy New Yorker elected,'" Dimon said at the panel. "That was dead wrong. And by the way, this wealthy New Yorker actually earned his money, it wasn't a gift from daddy … I'm as tough as he is, I'm smarter than he is, I would be fine. He could punch me all he wants, it wouldn't work for me, I'd fight right back.”

Afterward, in his one-on-one interview with Jarvis, Dimon walked back his remarks.

“I shouldn't have said it," Dimon said to Jarvis. "And I [did] more out of frustration and a little of my own machismo. But I shouldn't have said it and so... it also proves I wouldn't be a good politician.”

Dimon’s remarks at the panel prompted a response from Trump, who slammed the banker as lacking the “aptitude or 'smarts'” to run for president.

ABC News' Taylor Dunn contributed to this report.