diagram and angular init