One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| {"lastUpload":"2020-04-21T01:22:44.724Z","extensionVersion":"v3.4.3"} |
| import { Directive, Input, ElementRef, Renderer } from '@angular/core'; | |
| /** | |
| * Generated class for the HideHeaderDirective directive. | |
| * | |
| * See https://angular.io/docs/ts/latest/api/core/index/DirectiveMetadata-class.html | |
| * for more info on Angular Directives. | |
| */ | |
| @Directive({ | |
| selector: '[hide-header]', // Attribute selector |
| 'use strict' | |
| const express = require('express') | |
| const bodyParser = require('body-parser') | |
| const todos = require('./todos') | |
| require('./env') | |
| const app = express() | |
| app.use(bodyParser.json()) | |
| app.use(express.static('public')) |
| // Main class | |
| export class AppComponent { | |
| _dateFunc: dateFunc = new dateFunc() | |
| // then somewhere in your main component code add this | |
| const dat = this._dateFunc.betweenDate(new Date('2017-01-11'), new Date('2017-02-13')); | |
| console.log(dat) | |
| } | |
| // date function class |
| // since the <body> tag is inside the index.php and doesn't have any component.ts | |
| <a alphaToggleNav class="sidebar-toggle" data-toggle="offcanvas" role="button"> | |
| // the alphaToggleNav directive will find the body tag, and will change the className depending on the state. |
| // FRONTEND (angular2) | |
| // product-form.compontent.html | |
| <input type="file" (change)="fileChangeEvent($event)" placeholder="Upload file..." /> | |
| <button type="button" (click)="upload()">Upload</button> | |
| // product-form.compontent.ts | |
| import { Component, OnInit } from '@angular/core'; | |
| import { Http } from '@angular/http'; | |
| @Component({ |
| <!-- Markup --> | |
| <div class="container center-content"> | |
| <div class="row"> | |
| <div class="col-md-10 col-md-offset-1"> | |
| <div class="panel panel-primary boxed panelzone"> | |
| <div class="panel-header"> | |
| <img src="./assets/imgs/gg1.png" class="img-responsive"> | |
| </div> | |
| <div class="panel-body"> | |
| <h1> Some Content in here </h1> |