converting teacherdirectorysearch to angular