Skip to content

Commit 82fa40b

Browse files
committed
formatting
1 parent 9f910ca commit 82fa40b

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,15 @@ While this guide explains the *what*, *why* and *how*, I find it helpful to see
246246

247247
*Why?*: A module should only be created once, then retrieved from that point and after.
248248

249-
- Use `angular.module('app', []);` to set a module.
250-
- Use `angular.module('app');` to get a module.
249+
```javascript
250+
/* recommended */
251+
252+
// to set a module
253+
angular.module('app', []);
254+
255+
// to get a module
256+
angular.module('app');
257+
```
251258

252259
### Named vs Anonymous Functions
253260
###### [Style [Y024](#style-y024)]
@@ -2409,7 +2416,9 @@ Unit testing helps maintain clean code, as such I included some of my recommenda
24092416
*Why?*: Karma works well with task automation leaders such as [Grunt](http://www.gruntjs.com) (with [grunt-karma](https://github.com/karma-runner/grunt-karma)) and [Gulp](http://www.gulpjs.com). When using Gulp, use [Karma](https://github.com/karma-runner/karma) directly and not with a plugin as the API can be called directly.
24102417
24112418
```javascript
2412-
/// Gulp example with Karma directly
2419+
/* recommended */
2420+
2421+
// Gulp example with Karma directly
24132422
function startTests(singleRun, done) {
24142423
var child;
24152424
var excludeFiles = [];

0 commit comments

Comments
 (0)