angular/angular.js

View on GitHub
docs/config/tag-defs/tutorial-step.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict';

module.exports = {
  name: 'step',
  transforms: function(doc, tag, value) {
    if (doc.docType !== 'tutorial') {
      throw new Error('Invalid tag, step.  You should only use this tag on tutorial docs');
    }
    return parseInt(value,10);
  }
};