def ng2_get_component_property(self, element, prop):
        """
        :Description: Will get value of property of element's component instance.
        :Warning: This will only work for Angular components.
        :param element: Element for browser instance to target.
        :type element: WebElement
        :param prop: Property of element's component to target.
        :type prop: string
        :example: 'messages.total'
        :return: string
        """
        return self.browser.execute_script(
            'return ng.probe(arguments[0]).componentInstance%s;' % self.__d2b_notation(prop=prop),
            element)
def ng2_get_component_property ( self , element , prop ) : return self . browser . execute_script ( 'return ng.probe(arguments[0]).componentInstance%s;' % self . __d2b_notation ( prop = prop ) , element )
:Description: Will get value of property of element's component instance.
        :Warning: This will only work for Angular components.
        :param element: Element for browser instance to target.
        :type element: WebElement
        :param prop: Property of element's component to target.
        :type prop: string
        :example: 'messages.total'
        :return: string