diff --git a/.angular-cli.json b/.angular-cli.json index 524764f..5130581 100644 --- a/.angular-cli.json +++ b/.angular-cli.json @@ -25,7 +25,6 @@ ], "scripts": [ "../node_modules/jquery/dist/jquery.min.js", - "../node_modules/bootstrap/dist/js/bootstrap.min.js", "../node_modules/bootstrap/dist/js/bootstrap.bundle.min.js" ], "environmentSource": "environments/environment.ts", diff --git a/src/app/components/post/post.component.ts b/src/app/components/post/post.component.ts index 7f623f0..7634ec7 100644 --- a/src/app/components/post/post.component.ts +++ b/src/app/components/post/post.component.ts @@ -16,8 +16,8 @@ export class PostComponent implements OnInit { ngOnInit() { //TODO load the relevant HTML file! - console.log('post component has inited: '+this.post.id); - console.log(this.post); + // console.log('post component has inited: '+this.post.id); + // console.log(this.post); this.dataloaderService.getPost(this.post.type, this.post.id).subscribe(content=>{ this.htmlContainer.nativeElement.innerHTML = content; diff --git a/src/app/services/dataloader.service.ts b/src/app/services/dataloader.service.ts index 78c2d77..01cb198 100644 --- a/src/app/services/dataloader.service.ts +++ b/src/app/services/dataloader.service.ts @@ -17,15 +17,15 @@ export class DataloaderService { //fill it up for(var index in posts) { let post:any = posts[index]; - console.log('got this key: '+post); - console.log(post); + // console.log('got this key: '+post); + // console.log(post); let temp:Post = new Post(post.post.id); temp.title = post.post.title; temp.type = post.type; res.push(temp); } - console.log('these are the posts...'); - console.log(res); + // console.log('these are the posts...'); + // console.log(res); return res; }); } @@ -39,9 +39,9 @@ export class DataloaderService { headers: new HttpHeaders({ 'Content-Type': 'text/html', 'Accept':'text/html' }) }; - console.log('launching GET'); + // console.log('launching GET'); let url = "assets/post/"+type+"/"+id+"/full.html"; - console.log('fetching: '+url); + // console.log('fetching: '+url); return this.http.get(url, {responseType: 'text'}); }