0.3.0 • Published 7 years ago
angular-ui-router-modal v0.3.0
angular-ui-router-modal
Add .modalState method to ui.router.$stateProvider
installation
not yet available
$ bower install angular-ui-router-modal --save
$ jspm install angular-ui-router-modal --save
$ npm install angular-ui-router-modal --save
usage
$uiRouterModalProvider
todo: write it up
$uiRouterModalProvider.config
$uiRouterModalProvider.config({
viewName: /** String **/,
templateUrl: /** String **/,
rootState: /** String **/,
controller: /** String|Function **/,
resolve: /** Object **/,
stickyOpeneres: /** Boolean **/
});
$uiRouterModalProvider.$get
Returns the configuration block along with some attached convenience methods.
$uiRouterModal.$close
todo: write it up
$uiModalView
todo: write it up
$uiModalFill
todo: write it up
$stateProvider.modalState
All of the regular properties available to
$stateProvider.state
are available to.modalState
.
$stateProvider.modalState('someModal', {
url: /** String **/
controller: /** String|Function **/,
templateUrl: /** String **/,
resolve: /** Object **/,
sticky: /** Boolean **/,
views: /** Object **/,
/** etc etc **/
});
testing
$ npm install; npm test
license
MIT © Kasper Lewau