materialdesign

A 2-post collection

Angular 2 : Organization Using {barrels}

The import statements in Angular 2 can get pretty cumbersome if you're using a lot of services, models, directives etc in any specific component. Looking at the basic "QuickStart", the app.component.ts doesn't seem very obtuse. import {Component} from 'angular2/core'; @Component({ selector: 'my-app', template: '<h1>Quickstart</h1>' }) export class AppComponent { } However, looking at the Tour of Heroes example: import { Component } from '@angular/core'; import { RouteConfig, ROUTER_DIRECTIVES, ROUTER_PROVIDERS } from '@angular/router-deprecated'; import { HeroService } from './hero.service'; import { DashboardComponent } from './dashboard.component'; import { HeroesComponent } from './heroes.component'; import { HeroDetailComponent } from './hero-detail.component'; @Component({ selector: 'my-app', template: ` <h1>{{title}}</h1> <nav>...


yo aspnet : UI Options Coming Soon!

Just a quick update on what the yo aspnet team has been working on. Bootstrap (aka Twitter Bootstrap) is the very well known UI layout engine and has been the standard for the ASP.NET generator. However, there was a contributor - Josh Williams pitching the idea of using Semantic UI (http://semantic-ui.com/) as an alternative. After some conversation with other members of the team, we decided that choice would prevail and offer the following options. $ yo aspnet _-----_ | | .--------------------------. |--(o)--| | Welcome to the | `---------´ | marvelous ASP.NET Core | ( _´U`_ ) | 1.0 generator! | /___A___\ '--------------------------' | ~ | __'.___.'__ ´ ` |° ´ Y ` ? What type of application do you want to create? Web Application ? Which UI framework would you like to use?...