Comparing The Law of Karma with The Law of Attraction
Karma in Sanskrit literally means action – every kind of action, whether or not it is intended. It is action on a mental, physical, emotional, and spiritual level. The Law of Karma says that those actions have equal value consequences over time, both in the near term and the long term.
The Law of Karma only contains the principles of the Law of Attraction. Whatever you put your intention upon will create an effect, possibly even your intended outcome. What the Law of Attraction can't account for is what are the preexisting effects of your past thoughts and behavior on your present desires (this is important to keep in mind).
We don't enter this life as a clean vessel, we are born with our own particular genetic history, including ancestral tendencies, and that colors what we are likely to manifest, regardless of how strongly we practice the laws of attraction.