If you need to display feedback to a user in-app you should use a banner notification. These are perfect for displaying unobtrusive messages at the top of the view port, such as when a form error occurs or when an action has completed successfully.
context.banner.show(message, type, autoclose);
context.banner.hide('Hello World!', 'success', true);