Giter VIP home page Giter VIP logo

Comments (15)

olive75 avatar olive75 commented on August 18, 2024 4

With angular 1.3.15, this solved the $compile:multidir error for me:

<div ng-controller="StartTourCtrl">
      <div ng-intro-options="IntroOptions" ng-intro-method="CallMe"
           ng-intro-oncomplete="CompletedEvent" ng-intro-onexit="ExitEvent"
           ng-intro-onchange="ChangeEvent" ng-intro-onbeforechange="BeforeChangeEvent"
           ng-intro-onafterchange="AfterChangeEvent"
           ng-intro-autostart="ShouldAutoStart">
       ... 
      </div>
</div>

from angular-intro.js.

brunowego avatar brunowego commented on August 18, 2024 1

I get this issue again with 1.4.9 version of angular.

from angular-intro.js.

yaronguez avatar yaronguez commented on August 18, 2024

I wonder if this has to do with support for Angular 1.3? I see your example uses 1.2 and when I update it to 1.3 I get an error:

Error: [$compile:multidir] http://errors.angularjs.org/1.3.14/$compile/multidir?p0=ngController&p1=ngIntroOptions&p2=new%2Fisolated%20scope&p3=%3Cdiv%20class%3D%22container-narrow%22%20ng-controller%3D%22MyController%22%20ng-intro-options%3D%22IntroOptions%22%20ng-intro-method%3D%22CallMe%22%20ng-intro-oncomplete%3D%22CompletedEvent%22%20ng-intro-onexit%3D%22ExitEvent%22%20ng-intro-onchange%3D%22ChangeEvent%22%20ng-intro-onbeforechange%3D%22BeforeChangeEvent%22%20ng-intro-onafterchange%3D%22AfterChangeEvent%22%20ng-intro-autostart%3D%22ShouldAutoStart()%22%3E
M/<@file:///Users/yaronguez/Websites/crypteron/angular-intro.js/bower_components/angular/angular.min.js:6:417
Oa@file:///Users/yaronguez/Websites/crypteron/angular-intro.js/bower_components/angular/angular.min.js:66:1
y@file:///Users/yaronguez/Websites/crypteron/angular-intro.js/bower_components/angular/angular.min.js:60:143
ba@file:///Users/yaronguez/Websites/crypteron/angular-intro.js/bower_components/angular/angular.min.js:51:429
ba@file:///Users/yaronguez/Websites/crypteron/angular-intro.js/bower_components/angular/angular.min.js:52:55
ba@file:///Users/yaronguez/Websites/crypteron/angular-intro.js/bower_components/angular/angular.min.js:52:55
F@file:///Users/yaronguez/Websites/crypteron/angular-intro.js/bower_components/angular/angular.min.js:49:436
tc/d/</<@file:///Users/yaronguez/Websites/crypteron/angular-intro.js/bower_components/angular/angular.min.js:18:4
Pe/this.$get</l.prototype.$eval@file:///Users/yaronguez/Websites/crypteron/angular-intro.js/bower_components/angular/angular.min.js:125:301
Pe/this.$get</l.prototype.$apply@file:///Users/yaronguez/Websites/crypteron/angular-intro.js/bower_components/angular/angular.min.js:126:1
tc/d/<@file:///Users/yaronguez/Websites/crypteron/angular-intro.js/bower_components/angular/angular.min.js:17:477
e@file:///Users/yaronguez/Websites/crypteron/angular-intro.js/bower_components/angular/angular.min.js:36:313
tc/d@file:///Users/yaronguez/Websites/crypteron/angular-intro.js/bower_components/angular/angular.min.js:17:1
tc@file:///Users/yaronguez/Websites/crypteron/angular-intro.js/bower_components/angular/angular.min.js:18:179
Jd@file:///Users/yaronguez/Websites/crypteron/angular-intro.js/bower_components/angular/angular.min.js:17:1
@file:///Users/yaronguez/Websites/crypteron/angular-intro.js/bower_components/angular/angular.min.js:249:428
a@file:///Users/yaronguez/Websites/crypteron/angular-intro.js/bower_components/angular/angular.min.js:163:399
lf/c@file:///Users/yaronguez/Websites/crypteron/angular-intro.js/bower_components/angular/angular.min.js:32:384

file:///Users/yaronguez/Websites/crypteron/angular-intro.js/bower_components/angular/angular.min.js
Line 102

from angular-intro.js.

mendhak avatar mendhak commented on August 18, 2024

Yes I think it has to do with changes in 1.3, see this page. Unfortunately it isn't immediately clear to me what the correct way of isolate scopes is. I'll have a look when I get some time (or a kind soul will create a pull request), but until then it's limited to 1.2

from angular-intro.js.

gmkeith avatar gmkeith commented on August 18, 2024

This problem is in fact an issue when the controller and directive exist on the same HTML element. The simple fix is to move the intro attribute(s) to another element. From my extremely limited understanding, Angular 1.3 doesn't know what to process first if they exist on the same element. It took the liberty of making a change see here:
https://github.com/gmkeith/angular-intro.js
I can create a pull request for this if you wish.

from angular-intro.js.

solenoo avatar solenoo commented on August 18, 2024

@gmkeith I've used your version and now I'm getting

Error: [$compile:nonassign] Expression 'undefined' used with directive 'ngIntroOptions' is non-assignable!

from angular-intro.js.

gmkeith avatar gmkeith commented on August 18, 2024

@solenoo How are you building and running?
I tried build with the default grunt build and running the example/index.html through IntelliJ/WebStorm and everything seemed fine. Everything seems to be checked in, with the exception of the build artefact.

from angular-intro.js.

yaronguez avatar yaronguez commented on August 18, 2024

Hi guys, I just wanted to check back in on this. Were you all able to get this working with Angular 1.3? I've been using ng-joyride and running into all kinds of issues. I have yet to find a stable and robust onboarding plugin for Angular 1.3.

from angular-intro.js.

Purus avatar Purus commented on August 18, 2024

I am facing the same issue when using this with Ionic code.

Error: [$compile:multidir] Multiple directives [ionTabs, ngIntroOptions] asking for new/isolated scope on: <ion-tabs class="tabs-icon-top tabs-color-active-positive pane tabs-bottom tabs-standard" ng-intro-options="IntroOptions" ng-intro-autostart="true" nav-view="stage" style="-webkit-transition-duration: 0ms; transition-duration: 0ms; opacity: 1; -webkit-transform: translate3d(0%, 0px, 0px);">

from angular-intro.js.

CrouseMatthew avatar CrouseMatthew commented on August 18, 2024

Following gmkelth's suggestion solved the issue for me.

from angular-intro.js.

ismaelgcosta avatar ismaelgcosta commented on August 18, 2024

Hi, I'm using angular intro with the angular 1.3.15 and I didn't have troubles yet. So I think it's compatible both angular 1.2 and angular 1.3

from angular-intro.js.

Alexandre-io avatar Alexandre-io commented on August 18, 2024

#63 should fix your issue

from angular-intro.js.

timelf123 avatar timelf123 commented on August 18, 2024

Confirmed with 1.5.0 - the fix is #50 (comment) separate your ng-controller and ng-intro* attrs into different elements

from angular-intro.js.

anatoly314 avatar anatoly314 commented on August 18, 2024

Same issue if creating a custom directive to use together with ng-intro-options for example to customize its behavior.

from angular-intro.js.

millerscout avatar millerscout commented on August 18, 2024

on the latest version 3.1.1 #112 it's possible to use the service directly, you may take advantage of using the controller only to manipulate the introJs.

i'll close this, but if you need further help tell me, i'll try to help you asap.

from angular-intro.js.

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.