Skip to content

Instantly share code, notes, and snippets.

View ArtemRomanovsky's full-sized avatar

ArtemRomanovsky

View GitHub Profile
data.array[i].prop1 = 'new value';
data.array.push(newValue);
<nb-reveal-card>
<nb-card-front>
<nb-card><nb-card-body>Front Card</nb-card-body></nb-card>
</nb-card-front>
<nb-card-back>
<nb-card><nb-card-body>Back Card</nb-card-body></nb-card>
</nb-card-back>
</nb-reveal-card>
<nb-user showInitials
size="medium"
name="Dmitry Nehaychik"
title="Nebular Dev"
badgeText="17"
badgeStatus="danger"
badgePosition="bottom right">
</nb-user>
export const routes:RouterConfig = [
...LoginRoutes,
...RegisterRoutes,
...PagesRoutes,
{
path: '**',
redirectTo: '/pages/dashboard'
},
];
export const PagesRoutes:RouterConfig = [
{
path: 'pages',
component: Pages,
children: [
{
path: 'dashboard',
component: Dashboard
},
{
export const PagesRoutes:RouterConfig = [
{
path: 'pages',
component: Pages,
children: [
{
path: 'dashboard',
component: Dashboard,
data: {
<!-- build:js({.tmp/serve,.tmp/partials,src}) scripts/app.js -->
<!-- inject:js -->
<!-- js files will be automatically insert here -->
<!-- endinject -->
{
id: {
title: 'ID',
filter: true
},
name: {
title: 'Name',
filter: {
const items = {};
return {{result.data}}.map(item => {  
return {
value: item.name,
title: item.name,
};
}).filter(item => {
return items.hasOwnProperty(item.value) ? false : (items[item.value] = true);
});