An open API service indexing awesome lists of open source software.

https://github.com/tenphi/angular-bem-todomvc

Example of using bem methodology in angular projects
https://github.com/tenphi/angular-bem-todomvc

Last synced: about 2 months ago
JSON representation

Example of using bem methodology in angular projects

Awesome Lists containing this project

README

          

# Angular TodoMVC Example With BEM Methodology

Based on [DanWahlin's Angular Boilerplate](https://github.com/DanWahlin/Angular-BareBones)

## Order of css rules

* Root class
* Root styles
* Root states (`:hover`, `:active`, etc)
* Root pseudo-classes (`::before`, `::after`, etc)
* Root pseudo-classes styles
* Root pseudo-classes states
* ...
* Element class
* Element styles
* Element states
* Element pseudo-classes
* Element pseudo-classes styles
* Element pseudo-classes states
* ...
* ...
* ...
* Context styles (for example: `.block--mod .root__element`)
* ...

## Running the Application

1. Install [Node.js](http://nodejs.org)

1. Install the Angular CLI:

`npm install -g @angular/cli`

1. Run `npm install` to install app dependencies

1. Run `ng serve -o` to start the server and launch the app