add angularjs ref.