angular router component code example Example: angular routing // create a new project with routing enabled ng new routing-app --routing