Code Monkey home page Code Monkey logo

ngx.layer's People

Contributors

1inus avatar mintframework avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ngx.layer's Issues

doesn't work in my project

following the document, installed angular2-layer, then the systemconfig.js:
'angular2-layer': 'npm:angular2-layer',
...
"angular2-layer" : { main: 'ng2-layer.js', defaultExtension: 'js'},

then I got the following error with "import {NgLayer, NgLayerRef} from 'angular2-layer'":
iisp-report-show/src/favorite/favorite.component.ts(3,35): error TS2307: Cannot
find module 'angular2-layer'.
same problem to use "ng2-layer " instead of 'angular2-layer'.

Then I copy the ng2-layer.ts to my project and got the following errors:
src/ng2-layer.ts(465,2): error TS4055: Return type of public method from exported class has or is using private name 'layerWraper'.
src/ng2-layer.ts(638,27): error TS2339: Property 'getOwnMetadata' does not exist on type 'typeof Reflect'.
src/ng2-layer.ts(641,26): error TS2339: Property 'getOwnMetadata' does not exist on type 'typeof Reflect'.
src/ng2-layer.ts(664,17): error TS2345: Argument of type 'void' is not assignable to parameter of type '{} | PromiseLike<{}>'.
src/ng2-layer.ts(678,14): error TS2345: Argument of type 'void' is not assignable to parameter of type '{} | PromiseLike<{}>'.
src/ng2-layer.ts(683,13): error TS2345: Argument of type 'void' is not assignable to parameter of type '{} | PromiseLike<{}>'.
src/ng2-layer.ts(730,7): error TS2322: Type '{ title: string; align: string; closeAble: true; cancelText: string; okText: string; outSelector:...' is not assignable to type 'LayerConfig'.
Property 'declarations' is missing in type '{ title: string; align: string; closeAble: true; cancelText: string; okText: string; outSelector:...'.
17:24:14 - Compilation complete. Watching for file changes.

請問以下的錯誤訊息,可能是什麼原因?

Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'undefined'. Current value: 'dialog_body'. It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?

setup-dialog.component.html 如下:

<div id="id_content">
           <h1>dffddf</h1>
</div>

<hr>
<div id="id_foot" fxLayoyt="row">
  <button >Delete</button>
  <button >Cancel</button>
  <button >Save</button>
</div>

感激不儘

弹窗组件循环依赖的问题

你好,现在有弹窗1和弹窗2,在弹窗1上打开弹窗2,现在需要关闭弹窗2后打开弹窗1。

弹窗1组件中:

    this.l.dialog({

        title           : 弹窗2“”,

        dialogComponent : editAddrComponent,//editAddrComponent为弹窗2的组件

        parent          : this,

        closeAble       : true,

        data            : addr
    })

弹窗2组件中:

setOnClose回调打开弹窗一

   this.l.dialog({

        title           :"弹窗1",

        align           :"top",

        dialogComponent : addrListComponent,//addrListComponent为弹窗1的组件

        closeAble       : true

    });

这样就导致两弹窗之间需要相互Import,angular会提醒Warnings while compiling。这怎么解决呢?望解答,谢谢。

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.