You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install and manage with [Bower](http://bower.io). A [CDN](http://cdnjs.com/libraries/angular-css) is also provided by cdnjs.com
21
+
Install and manage with [Bower](http://bower.io) or [jspm](http://jspm.io). A [CDN](http://cdnjs.com/libraries/angular-css) is also provided by cdnjs.com
22
22
23
23
```bash
24
24
$ bower install angular-css
25
25
```
26
26
27
+
```bash
28
+
$ jspm install github:castillo-io/angular-css
29
+
```
30
+
27
31
28
32
1) Include the required JavaScript libraries in your `index.html` (ngRoute and UI Router are optional).
var myApp =angular.module('myApp', ['ngRoute','door3.css']);
43
+
var myApp =angular.module('myApp', ['ngRoute','angularCSS']);
40
44
```
41
45
46
+
NOTE: The module name "door3.css" is now deprecated.
47
+
42
48
### Examples
43
49
44
50
This module can be used by adding a css property in your routes values, directives or by calling the `$css` service methods from controllers and services.
@@ -47,6 +53,14 @@ The css property supports a string, an array of strings, object notation or an a
47
53
48
54
See examples below for more information.
49
55
56
+
#### In Components
57
+
58
+
```js
59
+
myApp.component('myComponent', {
60
+
css:'my-component/my-component.css'// <--- magic!
61
+
templateUrl:'my-component/my-component.html',
62
+
});
63
+
```
50
64
51
65
#### In Directives
52
66
@@ -240,7 +254,7 @@ $routeProvider
240
254
});
241
255
```
242
256
243
-
Even though you can use the `media` property to specify media queries, the best way to manage your breakpoins is by settings them in the provider's defaults. For example:
257
+
Even though you can use the `media` property to specify media queries, the best way to manage your breakpoints is by settings them in the provider's defaults. For example:
0 commit comments