Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions example/angular2/lib/styled_component.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import 'package:angular2/core.dart';

@Component(
selector: 'styled-component',
styleUrls: const ['styled_component.css'],
templateUrl: 'styled_component.html')
class StyledComponent {

StyledComponent();

}
1 change: 1 addition & 0 deletions example/angular2/lib/styled_component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h1>A Styled Angular 2 Application</h1>
7 changes: 7 additions & 0 deletions example/angular2/lib/styled_component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
:host {
font-family: Roboto, Helvetica, Arial, sans-serif;
}

h1 {
color: #ffA500;
}
15 changes: 15 additions & 0 deletions example/angular2/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: dart_sass_angular2
version: 0.0.1
environment:
sdk: '>=1.19.0 <2.0.0'
dependencies:
angular2: any
dev_dependencies:
browser: ^0.10.0
dart_to_js_script_rewriter: ^1.0.1
dart_sass_transformer: any
transformers:
- dart_sass_transformer
- angular2:
entry_points: web/main.dart
- dart_to_js_script_rewriter
12 changes: 12 additions & 0 deletions example/angular2/web/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<title>Angular 2 + SASS Styling</title>

<script defer src="main.dart" type="application/dart"></script>
<script defer src="packages/browser/dart.js"></script>
</head>
<body>
<styled-component>Coming Up...</styled-component>
</body>
</html>
7 changes: 7 additions & 0 deletions example/angular2/web/main.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import 'package:angular2/platform/browser.dart';

import 'package:dart_sass_angular2/styled_component.dart';

main() {
bootstrap(StyledComponent);
}