Ported space classification edition to angular-js