Convert edit rule page to Angular