Shayne Boyer

Shayne Boyer is an ASP.NET MVP, services developer, plays in the cloud, community speaker and open source contributor.

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>...


How To: Visual Studio 2015 & Angular 2

There has been a few request I have seen lately on how to get an Angular 2 development environment going using Visual Studio 2015. any one please guide me to video or blog, configuring Visual Studio 2015 for AngularJS 2 development using TypeScript— Dhananjay Kumar (@debug_mode) April 29, 2016 My recent post "Angular 2 : Getting off the Starting Line" takes the Angular Team's Quickstart and adds a gulp build process, this is the project I'll use for the walkthrough. First, clone https://github.com/spboyer/ng2-startingline . You can either do this on the command line or within the Visual Studio 2015 Git add in. Next, File > Open website and select the folder you cloned the project to. When...


2016 - The year of CLI

2016 is officially the year of the monkey, but I am calling it the year of the CLI (Command Line Interface). One of the recent talks I gave at DevIntersection was "Modern Web Toolchain". Mentioning CLI Tools and "Modern" does raise and eyebrow or two. It covers npm, bower, grunt (http://gruntjs.com), gulp etc. But more interestingly, about 50% of the talk is about command line tools; and more than just Yeoman. There are a number of either completely new or new versions of frameworks that are in the works for a version 1.0 release in 2016 and all of which are shipping a CLI tool. Angular 2.0 .NET Core NativeScript Aurelia Just to mention a few,...


Angular 2 : Getting off the Starting Line

The Angular team created a quickstart repo over at https://github.com/angular/quickstart which is a great starter project template for basically a "Hello World" application. It provides: lite-server, which is a demo or local/development only server basic tests using karma typescript dependencies (tsconfig, typings) Getting started is included in the README, but it's simple # clone the repo git clone https://github.com/angular/quickstart <your app name> # change directory to your app name cd <your app name> # delete the .git file to remove the binding from the angular repo rm -rf .git Now the code is set for you to create your own repo, git init, commit etc. Running the quickstart First make...


ASP.NET Core Needs a Logo

It is not uncommon for developers to adorn their laptops, Macs, Surface Pros, etc with the sticky vinyls of the platforms, tools and frameworks of the stuff we like to use. Unless you have been under a rock, or just too busy to look up, ASP.NET is all new again. It's small, fast, runs cross platform and aims to be on the radar of every new kid coming out of whatever school you name to be the framework of choice. But where's my sticker dude? dotnet is covered pretty well on stickermule.com as Kristan Hellang pointed out on the github issue - https://github.com/aspnet/Home/issues/579. I pointed out in my comment on the issue...