SHARE
TWEET

Untitled

a guest Jun 25th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. App component
  2. -----------------------------------------------------
  3. ./server.component.html
  4.      
  5. App component
  6. -----------------------------------------------------
  7. The server component
  8.      
  9. import { BrowserModule } from '@angular/platform-browser';
  10. import { NgModule } from '@angular/core';
  11. import { FormsModule, ReactiveFormsModule } from '@angular/forms';
  12. import { HttpModule } from '@angular/http';
  13. import { AppComponent } from './app.component';
  14. import { ServerComponent } from './server/server.component';
  15.  
  16. @NgModule({
  17.   declarations: [
  18.     AppComponent,
  19.     ServerComponent
  20.   ],
  21.   imports: [
  22.     BrowserModule,
  23.     FormsModule,
  24.     HttpModule
  25.   ],
  26.   providers: [],
  27.   bootstrap: [AppComponent]
  28. })
  29. export class AppModule { }
  30.      
  31. <p>App Coponent</p>
  32. <hr>
  33. <app-server></app-server>
  34.      
  35. import { Component } from '@angular/core';
  36.  
  37. @Component({
  38.     selector: 'app-server',
  39.     template: './server.component.html'
  40. })
  41. export class ServerComponent {
  42.  
  43. }
  44.      
  45. <p>The server component</p>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top