Solution #5: Header Component
Explore how to create a custom header component in Ionic Angular that accepts a dynamic title and menu button. Understand how to modularize this component for reuse across multiple pages, helping you manage common UI elements efficiently as your app grows.
We'll cover the following...
We'll cover the following...
Solution
import { AppPage } from './app.po';
describe('new App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
describe('default screen', () => {
beforeEach(() => {
page.navigateTo('/Inbox');
});
it('should say Inbox', () => {
expect(page.getParagraphText()).toContain('Inbox');
});
});
});
Solution: Add Header Component