Angular 4 integration for ContentExplorer
Is there any code sample or any tutorial links for content explorer and preview for angular 4 application.
Thanks in Advance.
-
Hey,
I got this working by importing the js file directly into my component
import { Component, OnInit } from '@angular/core';import '../../../box_content_explorer.js';declare var Box: any;@Component({selector: 'app-general',templateUrl: './general.component.html',styleUrls: ['./general.component.scss']})export class GeneralComponent implements OnInit {constructor() { }ngOnInit() {const contentExplorer = new Box.ContentExplorer();contentExplorer.show('FOLDER_ID', 'ACCESS_TOKEN', {container: '.container'});}}<div style="height:100vh" class="container">div> -
We can use the CDN Links of CSS and Scripts directly in index.html
Refe this repositoryhttps://github.com/bojjakaseenadhreddy/integrate-box-ui-elments-in-anugular
サインインしてコメントを残してください。
コメント
4件のコメント