How can I declare view to be opened as modal directly on click?
My route's definition is:
var routes = [
{ route: '', moduleId: 'home', title: 'My Apps', nav: true },
{ route: 'aboutus', moduleId: 'aboutus', title: 'About Us', nav: true },
{ route: 'help', moduleId: 'help', title: 'Help', nav: true },
{ route: 'faq', moduleId: 'faq', title: 'FAQ', nav: true },
{ route: 'contactus', moduleId: 'contactus', title: 'Contact', nav: true }
];
I want to open 'contactus' module as modal dialog on a current screen - don't want to navigate to another view.
Have no idea how to acomplish that. Many thanks for suggestions.
create custom modal
CustomModal.html
CustomModal.js
and then, modified shell.js and shell.html
shell.js
shell.html