summer-liu
summer-liu
I have a schema like this: ``` var UserSchema = new Schema({ username: { type: String, unique: true } }) ``` but unique is not working
I'm trying to get the route parameter for resolve, but $state.current.params, $state.params, $stateParams are all empty. But in ng-router, I can get it by using $route.current.params.
I'm using ngGrid in a modal. Each time when I open modal, I need to select some items and do some actions, but $scope.gridOptions.selectedItems keeps all the history of selections....
In the official webpage of ng-grid [ http://angular-ui.github.io/ng-grid/](http://angular-ui.github.io/ng-grid//), the links to plunker in API Documentation are not working.