Pre heat a pan over medium heat. At the same time, fill a large pot with water and salt and bring it to a boil for the pasta. Once it boils, cook the pasta.
Add the olive oil, onion, pancetta and cook them until the onion goes soft, smells sweet and everything starts to become golden.
Add the garlic cloves and stir constantly. I used confit garlic but you can use fresh as well. Add salt and pepper to taste. If your pasta still needs a bit more time to cook, turn off the heat to wait for it.
Once the pasta is very al dente (it will finish cooking in the pan), turn on the pan again and add it to the pancett and onion.
Along with the pasta, add the spinach and parmesan cheese as well as about a cup of the pasta water. This water has a bit of flour and helps us bind everything together.
Mix everything together and let it all come together over the heat. Once ready, serve immediately with grated parmesan cheese.