add angular tree prototype.