Pour the oil into a pan, add the thinly sliced onion and brown;
Clean the artichokes, cut their hearts into quarters and add them to the pan, mix;
Season with salt and pepper, then pour in the wine and let it evaporate;
Cover and cook for about 10 minutes on low heat;
Meanwhile, take another pan and brown the bacon (remember, without oil);
After that, add the artichokes and let them finish cooking over a medium heat;
Meanwhile, boil a pot of salted water and cook the tagliatelle for two minutes. Drain the pasta, remembering to keep aside a couple of ladles of cooking water that will be used for the sauce. Add the pasta to the artichokes and the bacon;
Add the remaining cooking water to the pasta to soften the sauce and finally the chopped parsley;
Give it a final mix, add the grated pecorino cheese. Give it a final mix, add the grated pecorino cheese and mix all the ingredients well and the tagliatelle with artichokes and bacon are ready to be served at the table;