This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(async () => { | |
const text = ` | |
a 1 | |
b 2 | |
c 3 | |
d 4 | |
`; | |
const addRowClass = `wd-vt-simple-table-add-row`; | |
// const removeRowClass = `wd-vt-st-remove-row-button`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | |
import { CounterComponent } from './counter.component'; | |
describe('CounterComponent', () => { | |
let component: CounterComponent; | |
let fixture: ComponentFixture<CounterComponent>; | |
beforeEach(async(() => { | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
... | |
"scripts": { | |
... | |
"serve": "concurrently \"npm run ui-jar\" \"ng serve\"", | |
"ui-jar": "node node_modules/ui-jar/dist/bin/cli.js --directory ./projects/ --includes \\.ts$", | |
"docs:watch": "npm run ui-jar -- --watch" | |
}, | |
... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>UiJar</title> | |
<base href="/"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="icon" type="image/x-icon" href="favicon.ico"> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import '../node_modules/foo/bar/src/main.scss'; | |
@include init($color-pallete); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import './lib/counter/counter.mixing.scss'; | |
@mixin init($color-pallete) { | |
// List of all mixing that you need for this library | |
@include counter($color-pallete); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
$color-pallete: ( | |
500: #fff, | |
contrast: ( | |
500: #000, | |
), | |
); | |
*/ | |
@mixin counter($color-pallete) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button (click)="increase()" class="counter-button"> {{ text }} {{ counter }} </button> |