C# Class WebMarkupMin.Core.Helpers.AngularHelpers

Angular helpers
Mostrar archivo Open project: Taritsyn/WebMarkupMin

Public Methods

Method Description
IsClassDirective ( string className ) : bool

Checks whether the class is the Angular class directive

IsCommentDirective ( string commentText ) : bool

Checks whether the comment is the Angular comment directive

NormalizeDirectiveName ( string directiveName ) : string

Normalizes a directive name

ParseClassDirective ( string className, DirectiveNameDelegate directiveNameHandler, ExpressionDelegate expressionHandler, SemicolonDelegate semicolonHandler ) : void

Parses a Angular class directive

ParseCommentDirective ( string commentText, DirectiveNameDelegate directiveNameHandler, ExpressionDelegate expressionHandler ) : void

Parses a Angular comment directive

Private Methods

Method Description
ToCamelCase ( string value ) : string

Converts a string value to camel case

Method Details

IsClassDirective() public static method

Checks whether the class is the Angular class directive
public static IsClassDirective ( string className ) : bool
className string Class name
return bool

IsCommentDirective() public static method

Checks whether the comment is the Angular comment directive
public static IsCommentDirective ( string commentText ) : bool
commentText string Comment text
return bool

NormalizeDirectiveName() public static method

Normalizes a directive name
public static NormalizeDirectiveName ( string directiveName ) : string
directiveName string Directive name
return string

ParseClassDirective() public static method

Parses a Angular class directive
public static ParseClassDirective ( string className, DirectiveNameDelegate directiveNameHandler, ExpressionDelegate expressionHandler, SemicolonDelegate semicolonHandler ) : void
className string Class name
directiveNameHandler DirectiveNameDelegate Directive name handler
expressionHandler ExpressionDelegate Binding expression handler
semicolonHandler SemicolonDelegate Semicolon handler
return void

ParseCommentDirective() public static method

Parses a Angular comment directive
public static ParseCommentDirective ( string commentText, DirectiveNameDelegate directiveNameHandler, ExpressionDelegate expressionHandler ) : void
commentText string Comment text
directiveNameHandler DirectiveNameDelegate Directive name handler
expressionHandler ExpressionDelegate Binding expression handler
return void