Module: unit/plugins/inlineTemplatesPreprocessor

Defines an inline template preprocessor.

Source:
Examples
// Configuration example to put in your karma configuration file
{
  moduleName: 'my-inline-templates' // Name of the AngularJS module that will be created to hold templates
}
// Don't forget to load the module before executing your tests
beforeEach(function() {
  module('my-inline-templates');
});

Methods

(inner) inlineTemplatesProcessor(logger, config) → {function}

Builds the Karma plugin.

Parameters:
Name Type Description
logger Object

Karma logger

config Object

Inline templates preprocessor configuration

Source:
Returns:

Preprocessor function to call for each file

Type
function