The following debugging information was generated by Atom Beautify
on Tue Dec 01 2015 15:48:35 GMT+0000 (GMT)
.
Platform: darwin
import { Directive, Input, Host, TemplateRef, ViewContainerRef, OnInit, DoCheck } from '@angular/core'; | |
import { NgSwitch } from '@angular/common'; | |
@Directive({ | |
selector: '[jrSwitchCases]' | |
}) | |
export class SwitchCasesDirective implements OnInit, DoCheck { | |
private ngSwitch: any; | |
private _created = false; |
import { fakeAsync, tick } from '@angular/core/testing'; | |
import { discardFakeAsyncTimers ) from './helpers'; | |
const myComponent = {}; | |
describe('My Component', () => { | |
before(fakeAsync(() => { | |
myComponent.getAsyncData(); | |
// Run async stuff. |
function ngTemplate(strings: TemplateStringsArray, ...propExpressions: any[]) { | |
return strings.reduce((acc, strValue, index) => { | |
acc.template += strValue; | |
if (index < propExpressions.length) { | |
const propKey = '__storybook_prop_' + index; | |
acc.template += propKey; | |
acc.props[propKey] = propExpressions[index]; | |
} | |
return acc; |
(function() { | |
angular | |
.module('myApp') | |
.directive('myUiGridResize', myUiGridResizeDirective); | |
/* @ngInject */ | |
function myUiGridResizeDirective(gridUtil, uiGridConstants) { | |
return { | |
restrict: 'A', | |
require: 'uiGrid', |
@states mainLayout { | |
@state initial { | |
::host { | |
background-color: black; | |
} | |
.main-content { | |
height: 95%; | |
} |
<ul> | |
<li>Jon | |
<ul> | |
<li>Bob</li> | |
<li>Jim</li> | |
<li>Dave</li> | |
</ul> | |
</li> | |
<li>Rob</li> | |
<li>Matt |