joaogarin / css-modules-angular2 Goto Github PK
View Code? Open in Web Editor NEWCss modules working with Angular2
Home Page: http://joaogarin.github.io/css-modules-angular2/
Css modules working with Angular2
Home Page: http://joaogarin.github.io/css-modules-angular2/
Wow, great work! The only solution i've seen so far for ng2 to have css-modules :)
Unfortunately, source-maps are not really working - when i click on a file in my inspector, i see just a "style.css" which still have the mangled/unreadable module-names in it instead of the real content of the original file:
https://www.dropbox.com/s/iq4a063a22m6ojq/Screenshot%202016-04-27%2020.52.57.png?dl=0
Can this somehow be fixed? I really would like to pick this up for our new stack at work, but for this i need to present working source-maps for my team ;)
I'm asking this because with react.js and webpack - source-maps are just working like a breeze :)
import styles from "./button.css";
@Component({
selector: 'buttone',
template: `<button class="${styles.some-btn}">test</button>`,
})
is there a way to make the class .some-btn to be find, somehow the dash breaks the reference.
thanks
Hi Joaogarin, thanks again for the awesome demo. My question is on a view that is given a button or dropdown, once triggered, is it right to use css module to change the style globally or locally at app.ts or at a certain component?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.