1- import " ../global/dialog.service" ;
1+ import ' ../global/dialog.service' ;
22
33/**
44 * This state displays the contact list.
@@ -8,17 +8,17 @@ import "../global/dialog.service";
88 */
99export const contactsState = {
1010 parent : 'app' , // declares that 'contacts' is a child of 'app'
11- name : " contacts" ,
12- url : " /contacts" ,
11+ name : ' contacts' ,
12+ url : ' /contacts' ,
1313 resolve : {
1414 // Resolve all the contacts. The resolved contacts are injected into the controller.
15- contacts : [ 'Contacts' , ( Contacts ) => Contacts . all ( ) ]
15+ contacts : [ 'Contacts' , ( Contacts ) => Contacts . all ( ) ] ,
1616 } ,
1717 data : { requiresAuth : true } ,
1818 deepStateRedirect : true ,
1919 sticky : true ,
2020 views : {
21- contacts : 'contacts'
21+ contacts : 'contacts' ,
2222 } ,
2323} ;
2424
@@ -32,12 +32,11 @@ export const viewContactState = {
3232 resolve : {
3333 // Resolve the contact, based on the contactId parameter value.
3434 // The resolved contact is provided to the contactComponent's contact binding
35- contact : [ 'Contacts' , '$transition$' , ( Contacts , $transition$ ) => Contacts . get ( $transition$ . params ( ) . contactId ) ]
35+ contact : [ 'Contacts' , '$transition$' , ( Contacts , $transition$ ) => Contacts . get ( $transition$ . params ( ) . contactId ) ] ,
3636 } ,
37- component : 'contactView'
37+ component : 'contactView' ,
3838} ;
3939
40-
4140/**
4241 * This state allows a user to edit a contact
4342 *
@@ -54,10 +53,10 @@ export const editContactState = {
5453 // This could also have been written using ui-view@state addressing: $default@contacts
5554 // Or, this could also have been written using absolute ui-view addressing: !$default.$default.$default
5655 '^.^.$default' : {
57- bindings : { pristineContact : " contact" } ,
58- component : 'editContact'
59- }
60- }
56+ bindings : { pristineContact : ' contact' } ,
57+ component : 'editContact' ,
58+ } ,
59+ } ,
6160} ;
6261
6362/**
@@ -68,5 +67,5 @@ export const editContactState = {
6867export const newContactState = {
6968 name : 'contacts.new' ,
7069 url : '/new' ,
71- component : 'editContact'
70+ component : 'editContact' ,
7271} ;
0 commit comments