added a checking condition in directive generator to know whether it is component nested and act accordingly
added a checking condition in directive generator to know whether it is component nested and act accordingly

A-Tokyo/generator-at-angular,A-Tokyo/generator-at-angular,A-Tokyo/generator-at-angular