Menu icon Foundation
Foundation 6 for Apps Modals

Hi, I'm trying to trigger a Modal programmatically how explained here:

http://foundation.zurb.com/apps/docs/#!/modal

But I get this error:

Error: ModalFactory is not defined

I tryed to import many angular modules but without success.

    'foundation',
    'foundation.core',
    'foundation.common',
    'foundation.modal',
    'foundation.dynamicRouting',
    'foundation.dynamicRouting.animations'

Please help would be appreciated

appsmodalserrorangular modules

Hi, I'm trying to trigger a Modal programmatically how explained here:

http://foundation.zurb.com/apps/docs/#!/modal

But I get this error:

Error: ModalFactory is not defined

I tryed to import many angular modules but without success.

    'foundation',
    'foundation.core',
    'foundation.common',
    'foundation.modal',
    'foundation.dynamicRouting',
    'foundation.dynamicRouting.animations'

Please help would be appreciated

Jay S over 3 years ago

have you imported the modalFactory into your controller like so:

 

.controller('QuickModal',function($scope, $state, $http, ModalFactory)

 

 

Brian over 3 years ago

ZURB has basically dropped support for this framework and it is now being maintained in angular-base-apps.

I've added better docs for modals which can be viewed here: https://base-apps.github.io/angular-base-apps/#!/modal