Code Monkey home page Code Monkey logo

ng2-semantic-ui's Introduction

ng2-semantic-ui

Semantic UI Angular 2 Integrations, written in pure AngularJS - no JQuery required.

Demo & Usage

ng2-semantic-ui

Installation

To install this library, run:

$ npm install ng2-semantic-ui --save

Add a reference to your index.html file: (also ensure you have a reference to the Semantic UI CSS file)

<script src="node_modules/ng2-semantic-ui/bundles/ng2-semantic-ui.min.js"></script>

Start using the directives:

import {DIRECTIVES} from `ng2-semantic-ui/ng2-semantic-ui';

Components

The current list of available components with links to their docs is below:

Quick start (from scratch)

Clone the angular2-quickstart repository, and set everything up.

Add the following lines to your index.html:

<script src="node_modules/ng2-semantic-ui/bundles/ng2-semantic-ui.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.1.8/semantic.css">

Update your app.component.ts to be the following:

import {Component} from 'angular2/core';
import {CHECKBOX_DIRECTIVES} from 'ng2-semantic-ui/ng2-semantic-ui';

@Component({
  selector: 'my-app',
  directives: [CHECKBOX_DIRECTIVES],
  template: `
<sui-checkbox>Checkbox example</sui-checkbox>
`
})
export class AppComponent {}

And you're good to go!

Development

To generate all library *.js, *.js.map and *.d.ts files:

$ npm run tsc

To run the demo app:

$ npm run demo

To compile the demo app without running it:

$ npm run tsc-demo
# use tsc-demo:w to watch for changes

License

MIT © Edward Carroll

ng2-semantic-ui's People

Contributors

edcarroll avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.