Help..

So me and my bf of 2 1\2 years. Have gotten into a trainwreck we have had a bunch of issues. I flirted with guys just being to friendly and we discussed and he forgave me i have had attitude issues . i dont know why im acting like this towards. Him hes a great loving guy. He puts alot of effort but he has anger problems that tend to make me. Hesitant to loving him completely. I do care about and love him. I understand he has reasons to resenting me but he has gone to the point where i dont know to even put effort or bot