angular-ui-router-modal

    0.3.0 • Public • Published

    angular-ui-router-modal travisci

    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

    Install

    npm i angular-ui-router-modal

    DownloadsWeekly Downloads

    38

    Version

    0.3.0

    License

    MIT

    Last publish

    Collaborators

    • avatar