You can't get a command line, but you can add packages using the input field on the bottom left side.
You could just create a project in a decent IDE of your choice and throw it in a stackblitz when you want to ask a question. To work on a project with other people you should use a repo like GitHub.
Here's a basic example of routing with and without a separate routing module.
In app.module.ts:
@NgModule({
declarations: [
AppComponent,
LoginComponent,
],
imports: [
BrowserModule,
AppRoutingModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Basic example of a app-routing.module.ts:
const routes: Routes = [
// A simple route to a component
// Be aware that the order is important in angular
// The first route that fits the format will be used
{ path: 'login', component: LoginComponent },
]
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule { }
Or your app.module.ts without a seperate routing module:
const routes: Routes = [
{ path: 'login', component: LoginComponent }
]
@NgModule({
declarations: [
AppComponent,
],
imports: [
BrowserModule
RouterModule.forRoot(routes)
],
providers: [],
bootstrap: [AppComponent]
})