Skip to content

Instantly share code, notes, and snippets.

@petebacondarwin
Created January 5, 2017 16:16
Show Gist options
  • Save petebacondarwin/9fb71ae5efd2ad1567938db1350f5a9f to your computer and use it in GitHub Desktop.
Save petebacondarwin/9fb71ae5efd2ad1567938db1350f5a9f to your computer and use it in GitHub Desktop.
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