The 16-year-old impressed on trial at Wolves.
The Slovenia Under-17 international almost joined Italian side Empoli last year.
“The fee was not big as we wanted, but we had to offer the boy the chance to move forward with his career,” said Triglav director Miran Subic.
“We are extremely proud to sell one of our players to a Premier League side.”