Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
VS Code - Angular Language Service - transitive exports bug
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
template: `
<h1>
{{title | bang}}
</h1>
`,
styles: []
})
export class AppComponent {
title = 'app works!';
}
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { SharedModule } from './shared.module';
import { AppComponent } from './app.component';
import { BangPipe } from './shared.module';
@NgModule({
declarations: [
AppComponent
],
imports: [
SharedModule,
BrowserModule,
FormsModule,
HttpModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
import { NgModule, Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'bang'
})
export class BangPipe implements PipeTransform {
transform(value: string) {
return value + '!';
}
}
@NgModule({
declarations: [
BangPipe
],
exports: [
BangPipe
]
})
export class SharedModule {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment