{"flag":true,"single":true,"pageTitle":"Implement 404 Route not found | Angular Router | Angular 15+","post":{"id":78,"user_id":"1","slug":"implement-404-route-not-found-angular-router-angular-15--rqsj","title":"Implement 404 Route not found | Angular Router | Angular 15+","body":"<p>Generate new component&nbsp;<\/p>\r\n<pre class=\"language-markup\"><code>ng generate component notfound<\/code><\/pre>\r\n<p>Modify routing&nbsp;<\/p>\r\n<pre class=\"language-markup\"><code>const routesare:Routes=[\r\n  {path:'',redirectTo:'home',pathMatch:'full'},\r\n  {path:'home',component:HomeComponent},\r\n  {path:'about',component:AboutusComponent},\r\n  {path:'**',component:NotfoundComponent},\r\n]<\/code><\/pre>\r\n<p>All path that is not found in routing will use Notfound component because of **<\/p>","category_id":"13","is_private":"0","created_at":"2023-03-29T01:27:46.000000Z","updated_at":"2023-03-29T01:27:46.000000Z","category":{"id":13,"user_id":"1","name":"Angular","slug":"angular-rfjp","parent_id":"12","created_at":"2023-03-24T03:25:15.000000Z","updated_at":"2023-03-24T03:25:15.000000Z"},"user":{"id":1,"name":"R GONDAL","email":"rizikmw@gmail.com","email_verified_at":null,"two_factor_confirmed_at":null,"current_team_id":"1","profile_photo_path":null,"created_at":"2023-03-12T10:49:33.000000Z","updated_at":"2025-01-10T12:59:00.000000Z","profile_photo_url":"https:\/\/ui-avatars.com\/api\/?name=R+G&color=7F9CF5&background=EBF4FF"}},"pageDesc":"Generate new component&nbsp; ng generate component notfound Modify routing&nbsp; const routesare:Routes=[   {path:'',redirectTo:'home',pathM - Implement 404 Route not found | Angular Router | Angular 15+ (Updated: March 29, 2023) - Read more about Implement 404 Route not found | Angular Router | Angular 15+ at my programming site [SITE]","categories":[]}