Soak rice in hot water for 5 minutes. Drain, rinse with cold water and drain again. Heat oil over medium heat in a pot. Add angel hair pasta and fry for about 2 minutes, stirring constantly until browned.
Add rice, cook for 3 to 4 minutes, stirring occasionally. Add chopped onion and garlic, stir and cook for 2 more minutes. Pour water or broth and season with salt and lime juice. Bring to a boil, reduce heat to low, cover and cook for about 20 minutes.
Remove from heat and keep covered for at least 5 minutes. Fluff with a fork and serve.