Tried to add custom library. however found custom directive does not work in loaded view.