Last night my husband and myself were watching TV and we sit on a reclining loveseat, well Max was sitting on my lap as he does alot. My husband came close to Max to pet his head and that is when he growled at him

Max is now 1 1/2, we got him 11 months ago and he has never done this before. Well I did push him off my lap and yelled at him that he is a bad dog but please help me with any ideas you have I don't want this to become a problem he has never done this before and he is a very friendly dog. And yes he is my dog I can't go anyplace without him at my heels.