BeastCode / VSCode-Angular-TypeScript-Snippets

Visual Studio Code TypeScript snippets (TypeScript, Html, Angular Material, Flex Layout, ngRx, RxJS & Testing) for Angular 17
https://marketplace.visualstudio.com/items?itemName=Mikael.Angular-BeastCode
MIT License
92 stars 49 forks source link

ng-router-featuremodule fixes #35

Closed cgatian closed 7 years ago

cgatian commented 7 years ago

ng-router-featuremodule issues:

import { NgModule } from '@angular/core';

Output:

import { RouterModule } from '@angular/router';
import { routes } from './routes';

const routes: Routes = [
    { path: 'path', component: FeatureComponent }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class FeatureRoutingModule {}
BeastCode commented 7 years ago

One more, Need to import Routes from the angular/router

BeastCode commented 7 years ago

Thanks Chaz!!!

Fixed and release, so take a look.

If you ever want to submit a pull request instead of writing this issue, you can always do that. If not I'm more then happy to keep adding them for you.

cgatian commented 7 years ago

It might be just as productive if I do that. Usually Im coding and mentally avoided the task switch.

On Wed, Aug 9, 2017, 2:16 AM Mike notifications@github.com wrote:

Thanks Chaz!!!

Fixed and release, so take a look.

If you ever want to submit a pull request instead of writing this issue, you can always do that. If not I'm more then happy to keep adding them for you.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BeastCode/VSCode-Angular-TypeScript-Snippets/issues/35#issuecomment-321163359, or mute the thread https://github.com/notifications/unsubscribe-auth/ABq8agKuJGeU_l75m34CZIqOEfAqpZx-ks5sWU7WgaJpZM4OxAFz .

BeastCode commented 7 years ago

No worries, but you should now you have the option if you want to. But keep adding them and I'll fix em. What should we add next?