Git Product home page Git Product logo

Comments (8)

vladsoroceanu avatar vladsoroceanu commented on May 21, 2024 1

Hi,

I am wondering the same thing too. Much appreciated if any help can be provided on this topic. Thanks!

from react-hybrid.

Anber avatar Anber commented on May 21, 2024 1

I hope It has been fixed in 0.3.6. @vladsoroceanu @PM00095 could you check it, please?

from react-hybrid.

PM00095 avatar PM00095 commented on May 21, 2024

any plan to add redux support?

from react-hybrid.

christopherthielen avatar christopherthielen commented on May 21, 2024

#138

from react-hybrid.

PM00095 avatar PM00095 commented on May 21, 2024

Let me check that and let me know if found some issues.

from react-hybrid.

philmday avatar philmday commented on May 21, 2024

did any of you get redux working with this? I get the following problems when I connect state to props:

Unknown provider: [object Object]DirectiveProvider <- [object Object]Directive]

Is there anyway of doing in this in javascript?


from react-hybrid.

Anber avatar Anber commented on May 21, 2024

@philmday, looks like hybrid can’t recognize the type of your view. You can specify it explicitly by adding $type: "react" to your view definition.

from react-hybrid.

alon24 avatar alon24 commented on May 21, 2024

@Anber @philmday
I too have the same issue:
I define the states in angularjs code, added $type, still does not see the store getting:

		$stateProvider
			.state('index', {
			url: _embeddedContextRoot,
			abstract: true,
			component: ReactHome,
			$type: "react"
		})
       .state('main', {
				parent: 'index',
				url: '/main',
				$type: "react",
				views: {
					mainContent: {
						component: Overview
					}
				}
			})

Result:

angular.js:15567 Error: [$injector:unpr] Unknown provider: [object Object]DirectiveProvider <- [object Object]Directive
https://errors.angularjs.org/1.7.8/$injector/unpr?p0=%5Bobject%20Object%5DDirectiveProvider%20%3C-%20%5Bobject%20Object%5DDirective
    at angular.js:138
    at angular.js:4924
    at Object.getService [as get] (angular.js:5084)
    at angular.js:4929
    at Object.getService [as get] (angular.js:5084)
    at getComponentBindings (templateFactory.js:179)
    at TemplateFactory.push../node_modules/@uirouter/angularjs/lib-esm/templateFactory.js.TemplateFactory.makeComponentTemplate (templateFactory.js:168)
    at Ng1ViewConfig.getTemplate (views.js:74)
    at Object.<anonymous> (viewDirective.js:310)
    at angular.js:1388 "<ui-view name="mainContent" portalview="[object Object]" class="ng-scope">"

from react-hybrid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.