Skip to content

cbeulke/tutorial-angular2-webpack-semantic

Repository files navigation

Starting a WebApp with Angular2, Webpack and Semantic-UI

Prerequisites

  • npm
  • typings
  • gulp

Step 0: Initialising the application

  • Create the directory
  • Do nothing else (you might want to do npm init, but this is not necessary though we will create a package.json by copying it from the angular tutorial)

Step 1: Creating sample application with Angular2 tutorial (Webpack)

Step 2: Installing jQuery

  • npm install jquery --save
  • vendor.ts => add "import 'jquery';"
  • webpack.common.js => add ProvidePlugin:
plugins: [
	...,

	new webpack.ProvidePlugin({
		jQuery: 'jquery',
		$: 'jquery',
		jquery: 'jquery'
	})
]

Step 3: Installing Semantic-UI

Step 4: Installing ngSemantic

  • https://github.com/vladotesanovic/ngSemantic
  • npm install ng-semantic --save
  • vendor.ts => add "import 'ng-semantic';"
  • app.module.ts => add "import { NgSemanticModule } from 'ng-semantic';"
  • app.module.ts => add NgSemanticModule to imports

Step 5: Testing

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages