Now playing
00:45
Trump on Obamacare: A lie directly from Obama
Pool
Now playing
02:19
Obama: Trump capitalizing on resentments
Pres. Trump Remarks at Fundraiser
POOL
Pres. Trump Remarks at Fundraiser
Now playing
01:32
Trump: I fell asleep during Obama speech
URBANA, IL - SEPTEMBER 07:  Former President Barack Obama speaks to students at the University of Illinois where he accepted the Paul H. Douglas Award for Ethics in Government on September 7, 2018 in Urbana, Illinois. The award is an annual honor given by the university's Institute of Government and Public Affairs to recognize public officials who have made significant contributions in public service.  (Photo by Scott Olson/Getty Images)
Scott Olson/Getty Images
URBANA, IL - SEPTEMBER 07: Former President Barack Obama speaks to students at the University of Illinois where he accepted the Paul H. Douglas Award for Ethics in Government on September 7, 2018 in Urbana, Illinois. The award is an annual honor given by the university's Institute of Government and Public Affairs to recognize public officials who have made significant contributions in public service. (Photo by Scott Olson/Getty Images)
Now playing
02:34
Obama unleashes on Trump in speech
SCALZO/Wilson/Getty Images
Now playing
02:38
Farrow: Memo in White House warned of conspiracy
Jeh Johnson NR
CNN
Jeh Johnson NR
Now playing
02:42
Johnson compares Trump, Obama immigration
SCALZO/Wilson/Getty Images
Now playing
02:34
Fox News slams Obama, praises Trump
Pete Souza
Now playing
00:50
Obama's photographer is trolling Trump
trevor noah
CNN
trevor noah
Now playing
01:18
'Daily Show' host on Obama vs. Trump
WASHINGTON, DC - JANUARY 20:  Former U.S. President Barack Obama (R) congratulates U.S. President Donald Trump after he took the oath of office on the West Front of the U.S. Capitol on January 20, 2017 in Washington, DC. In today's inauguration ceremony Donald J. Trump becomes the 45th president of the United States.  (Photo by Chip Somodevilla/Getty Images)
Chip Somodevilla/Getty Images North America/Getty Images
WASHINGTON, DC - JANUARY 20: Former U.S. President Barack Obama (R) congratulates U.S. President Donald Trump after he took the oath of office on the West Front of the U.S. Capitol on January 20, 2017 in Washington, DC. In today's inauguration ceremony Donald J. Trump becomes the 45th president of the United States. (Photo by Chip Somodevilla/Getty Images)
Now playing
01:43
Trump vs. Obama: A rocky relationship
CHICAGO, IL - DECEMBER 05:  Former president Barack Obama speaks to a gathering of more than 50 mayors and other guests during the North American Climate Summit on December 5, 2017 in Chicago, Illinois. The summit was held to bring together leaders from the U.S., Canada and Mexico to commit their cities to addressing climate change at the local level.  (Photo by Scott Olson/Getty Images)
Scott Olson/Getty Images North America/Getty Images
CHICAGO, IL - DECEMBER 05: Former president Barack Obama speaks to a gathering of more than 50 mayors and other guests during the North American Climate Summit on December 5, 2017 in Chicago, Illinois. The summit was held to bring together leaders from the U.S., Canada and Mexico to commit their cities to addressing climate change at the local level. (Photo by Scott Olson/Getty Images)
Now playing
01:14
Obama: Tend to democracy or risk Nazism
Now playing
02:27
Obama's parting letter to Trump revealed
Twitter/Jerry Travone
Now playing
01:47
Trump retweets meme of his Obama 'eclipse'
SCALZO/Wilson/Getty Images
Now playing
02:43
Trump continues to take aim at Obama legacy
US President Donald Trump and former President Barack Obama talk on the East front steps of the US Capitol after inauguration ceremonies on January 20, 2017 in Washington, DC.
ROBYN BECK/AFP/Getty Images
US President Donald Trump and former President Barack Obama talk on the East front steps of the US Capitol after inauguration ceremonies on January 20, 2017 in Washington, DC.
Now playing
02:23
The wiretapping saga in 2 minutes
(CNN) —  

President Barack Obama told donors on Thursday in Los Angeles that he told then-incoming President Donald Trump that he should rename Obamacare and take credit for its successes, instead of repealing it.

During a question and answer session at a fundraiser with Democratic National Committee chair Tom Perez, Obama said he didn’t have “pride of authorship” over the Affordable Care Act and would have been happy if Trump kept the program but called it something different.

“I said to the incoming president, ‘Just change the name and claim that you made these wonderful changes and I would be like, “You go,”’” he said to laughs. “Because I didn’t have pride of authorship, I just wanted people to have health care.”

Obama then said that Trump “couldn’t do it despite controlling all branches of government in Washington. They couldn’t do it because we had actually thought it through and it’s a hard thing to do.”

Trump did not heed Obama’s advice and instead looked to dismantle the sweeping health care law, even though he and Republicans on Capitol Hill failed to fully repeal the bill. Obama has even taken to telling audiences that Trump “essentially repealed Obamacare,” despite the fact he hasn’t. As part of the tax plan passed late last year, Republicans effectively repealed the law’s individual mandate, and experts worry its elimination may prompt insurers to drop out and premiums to spike if fewer young and healthy consumers enroll on the exchanges.

The comment was the closest Obama came to referencing Trump during his 45 minutes on stage, even though he never used the President’s name.

Obama spoke at length about health care during the fundraiser, his first for the DNC in 2018.

“The idea that I somehow took on health care just because I thought it was fun or it would somehow burnish my legacy is nuts,” he said. “Because we knew going in in 2008 that every president since Teddy Roosevelt had failed to do what every other advanced democracy in the world has done.”

Obama has long suggested that Republicans could fully rename Obamacare if they would keep the law.

“They can even change the name of the law to Reagancare,” he said at an event in 2016. “Or they can call it Paul Ryancare. I don’t care about credit. I just want it to work.”