Cachebuster for html/css files in Angular2
Use a settings file to get the environment/version # in cachebuster loader
Cachebuster for html/css files in Angular2
Use a settings file to get the environment/version # in cachebuster loader
| import { Directive, HostListener, Output, OnInit, OnDestroy, ElementRef, EventEmitter } from '@angular/core'; | |
| @Directive({ | |
| selector: '[offClick]' | |
| }) | |
| export class OffClickDirective implements OnInit, OnDestroy { | |
| @Output('offClick') public offClick: EventEmitter<null> = new EventEmitter<null>(); | |
| constructor( |
| import { Directive, HostListener, Output, OnInit, OnDestroy, ElementRef, EventEmitter } from '@angular/core'; | |
| @Directive({ | |
| selector: '[offClick]' | |
| }) | |
| export class OffClickDirective implements OnInit, OnDestroy { | |
| @Output('offClick') public offClick: EventEmitter<null> = new EventEmitter<null>(); | |
| constructor( |
| <tabs> | |
| <tab tabTitle="Tab 1">Tab 1 Content</tab> | |
| <tab tabTitle="Tab 2" [active]="true">Tab 2 Content</tab> | |
| <tab tabTitle="Tab 3" [disabled]="true">Tab 3 Content</tab> | |
| <tab tabTitle="Link Tab 4" href="http://google.com">Link Tab</tab> | |
| <tab tabTitle="Link Tab 5" href="http://google.com" [disabled]="true">Disabled Link Tab</tab> | |
| </tabs> |
| $('#tab_c > div.inventory > .inventory-slot').each(function(index,item){ | |
| if($(item).children('.inventory-item').data('item-type') == 'chest'){ | |
| $.get( "crates.php", {crate: $(item).children('.inventory-item').data('item-id')}); | |
| }; | |
| }); | |
| alert('opening chests...'); |
| <?php | |
| // create curl resource | |
| $ch = curl_init(); | |
| // set url | |
| curl_setopt($ch, CURLOPT_URL, "google.com"); | |
| //return the transfer as a string | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); |
| //dynamic array | |
| int n; | |
| //get n from user | |
| int* array; | |
| array = new int[n]; | |
| //do things |