Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 6e83dc6

Browse files
docs(README): fix code samples formatting
1 parent 7910536 commit 6e83dc6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ We are always looking for the quality contributions! Please check the [CONTRIBUT
9494
You can generate a custom build, containing only needed modules, from the project's homepage.
9595
Alternatively you can run local Grunt build from the command line and list needed modules as shown below:
9696

97-
```
97+
```javascript
9898
grunt build:modal:tabs:alert:popover:dropdownToggle:buttons:progressbar
9999
```
100100

@@ -115,7 +115,7 @@ templates to match your desired look & feel, add new functionality etc.
115115

116116
The easiest way to override an individual template is to use the `<script>` directive:
117117

118-
```javascript
118+
```html
119119
<script id="template/alert/alert.html" type="text/ng-template">
120120
<div class='alert' ng-class='type && "alert-" + type'>
121121
<button ng-show='closeable' type='button' class='close' ng-click='close()'>Close</button>
@@ -131,7 +131,7 @@ Let's have a look:
131131
Your own template url is `views/partials/ui-bootstrap-tpls/alert/alert.html`.
132132

133133
Add "html2js" task to your Gruntfile
134-
```
134+
```javascript
135135
html2js: {
136136
options: {
137137
base: '.',
@@ -152,7 +152,7 @@ Make sure to load your template.js file
152152
`<script src="/ui-templates.js"></script>`
153153

154154
Inject the `ui-templates` module in your `app.js`
155-
```
155+
```javascript
156156
angular.module('myApp', [
157157
'ui.bootstrap',
158158
'ui-templates'

0 commit comments

Comments
 (0)