Add error-message directive.

Improve UX for focus handling.
This commit is contained in:
Gunther Brunner
2014-09-26 17:47:14 +09:00
parent d6848c7f17
commit a83ecd43ed
10 changed files with 101 additions and 10 deletions

View File

@@ -0,0 +1,23 @@
describe('errorMessage', function () {
beforeEach(angular.mock.module(require('./index').name))
var scope, compile
beforeEach(inject(function ($rootScope, $compile) {
scope = $rootScope.$new()
compile = $compile
}))
it('should ...', function () {
/*
To test your directive, you need to create some html that would use your directive,
send that through compile() then compare the results.
var element = compile('<div error-message name="name">hi</div>')(scope)
expect(element.text()).toBe('hello, world')
*/
})
})