SHARE
TWEET

Untitled

a guest Jun 25th, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { BrowserModule } from '@angular/platform-browser';
  2. import { NgModule } from '@angular/core';
  3. import { FormsModule, ReactiveFormsModule } from '@angular/forms';
  4. import { HttpModule } from '@angular/http';
  5. import { AppComponent } from './app.component';
  6. import { ServerComponent } from './server/server.component';
  7.  
  8. @NgModule({
  9.   declarations: [
  10.     AppComponent,
  11.     ServerComponent
  12.   ],
  13.   imports: [
  14.     BrowserModule,
  15.     FormsModule,
  16.     HttpModule
  17.   ],
  18.   providers: [],
  19.   bootstrap: [AppComponent]
  20. })
  21. export class AppModule { }
  22.      
  23. <p>App Coponent</p>
  24. <hr>
  25. <app-server></app-server>
  26.      
  27. import { Component } from '@angular/core';
  28.  
  29. @Component({
  30.     selector: 'app-server',
  31.     template: './server.component.html'
  32. })
  33. export class ServerComponent {
  34.  
  35. }
  36.      
  37. <p>The server component</p>
  38.      
  39. @Component({
  40.     selector: 'app-server',
  41.     template: './server.component.html'
  42. })
  43.      
  44. @Component({
  45.     selector: 'app-server',
  46.     templateUrl: './server.component.html'
  47. })
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