penambahan form edit dan view

This commit is contained in:
2024-04-20 16:04:29 +07:00
parent dc74154a27
commit e3315bd761
5 changed files with 150 additions and 56 deletions

View File

@@ -43,7 +43,18 @@ import { ModalAddEditComponent } from './modal-add-edit/modal-add-edit.component
},
{
path: 'add-row',
component: AddEditDeviceComponent
component: AddEditDeviceComponent,
data: { mode: 'add' }
},
{
path: 'edit/:id',
component: AddEditDeviceComponent,
data: { mode: 'edit' }
},
{
path: 'view/:id',
component: AddEditDeviceComponent,
data: { mode: 'view' }
}
])
]