[#1709] add destroy member to angularjs