daily pastebin goal
58%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { Component, OnInit } from '@angular/core';
  2. import * as fs from 'fs';
  3.  
  4. @Component({
  5.   selector: 'app-review',
  6.   templateUrl: './review.component.html',
  7.   styleUrls: ['./review.component.css']
  8. })
  9. export class ReviewComponent implements OnInit {
  10.  
  11.   constructor() { }
  12.  
  13.  
  14.   ngOnInit() {
  15.  
  16.     var fs = require('fs');
  17.  
  18.     fs.readdir('./assets', function (err, files) {
  19.       // "files" is an Array with files names
  20.             console.log(files);
  21.  
  22.   });
  23.   }
  24.  
  25. }
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