Add the new snippet injector in grunt task

This commit is contained in:
Nikolay Iliev
2016-04-13 14:32:56 +03:00
parent a66636fc6b
commit 5ceeb7fddd
5 changed files with 82 additions and 42 deletions

33
apps/tests/console.md Normal file
View File

@@ -0,0 +1,33 @@
---
nav-title: "console How-To"
title: "How-To"
description: "Examples for using console"
---
# Console
### Logging
Logging to the console does not require the "console" module since the console variable is global. It can be used anywhere within your code.
You can log your message in several different categories.
<snippet id='console-log'/>
### Time
Begins counting a time span for a given name (key).
<snippet id='console-time'/>
Ends a previously started time span through the time method.
<snippet id='console-timeEnd'/>
### Assert
Asserts a boolean condition and prints a message in case the assert fails.
<snippet id='console-assert'/>
### Dir
Prints the state of the specified object to the console.
<snippet id='console-dir'/>
### Dump
Prints the state of the specified object to the console.
<snippet id='console-dump'/>
### Trace
Prints the current stack trace in the console.
<snippet id='console-trace'/>